L_DicomGetHostInfo

Summary

Gets the local address and port for the current connection.

Syntax

#include "ltdic.h"

L_LTDIC_API L_INT L_DicomGetHostInfo(hNet, pszAddress, AddressSizeInWords, pnPort)

Parameters

HDICOMNET hNet

A DICOM Network handle.

L_TCHAR * pszAddress

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

L_UINT32 AddressSizeInWords

Size of the destination pszAddress buffer.

L_UINT * pnPort

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

Returns

Value Meaning
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

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

For an example, refer to L_DicomConnect.

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.