L_DicomGetHostInfo

#include "ltdic.h"

L_INT EXT_FUNCTION L_DicomGetHostInfo(hNet, pszAddress, nPort)

HDICOMNET hNet;

/* a DICOM Network handle */

L_CHAR * pszAddress;

/* pointer to an address variable */

L_UINT * nPort;

/* pointer to a port variable */

Gets the local address and port for the current connection. This function is available in the Medical Suite Toolkit.

Parameter

Description

hNet

A DICOM Network handle.

pszAddress

Pointer to a variable to be updated with the IP address of the Host.

nPort

Pointer to a variable to be updated with the port of the Host.

Returns

0

SUCCESS

>0

An error occurred. Refer to Return Codes.

Comments

To get information about a peer, use L_DicomGetPeerInfo.

Required DLLs and Libraries

LTDIC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

L_DicomGetPeerInfo

Topics:

Working with DICOM Network Connections

Example

For an example, refer to L_DicomConnect.