Available in LEADTOOLS Medical Imaging toolkits. |
#include "ltdic.h"
L_LTDIC_API L_INT L_DicomGetHostInfo(hNet, pszAddress, AddressSizeInWords, pnPort)
HDICOMNET hNet; |
/* a DICOM Network handle */ |
L_TCHAR * pszAddress; |
/* pointer to an address variable */ |
L_UINT32 AddressSizeInWords; |
/* size of the destination string buffer */ |
L_UINT * pnPort; |
/* pointer to a port variable */ |
Gets the local address and port for the current connection.
Parameter |
Description |
hNet |
A DICOM Network handle. |
pszAddress |
Pointer to a variable to be updated with the IP address of the Host. |
AddressSizeInWords |
Size of the destination pszAddress buffer. |
pnPort |
Pointer to a variable to be updated with the port of the Host. |
Returns
DICOM_SUCCESS |
The function was successful. |
>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 |
Win32, x64
See Also
Functions: |
|
Topics: |
Example
For an example, refer to L_DicomConnect.