LDicomNet::GetDefaultSocketOptions

Summary

Gets the default socket options. This feature is available in version 16 or higher.

Syntax

#include "ltdic.h"

L_INT LDicomNet::GetDefaultSocketOptions(pOptions, uStructSize)

Parameters

pDICOMSOCKETOPTIONS pOptions

Pointer to a structure that contains the options to used when creating a socket for DICOM communication

L_UINT uStructSize

Size in bytes, of the structure pointed to by pOptions, for versioning. Use sizeof(DICOMSOCKETOPTIONS).

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

This function is used to get the default socket options that will be used when calling LDicomNet::Connect on a LDicomNet object. The default socket options are the options used if you call LDicomNet::Connect without first calling LDicomNet::SetSocketOptions.

This function always returns the same values.

This function is different from LDicomNet::GetSocketOptions which returns the socket options used when LDicomNet::SetSocketOptions was last called.

Internally, the socket is created when calling LDicomNet::Connect.

For more information about sockets, see the MSDN Winsock documentation.

Required DLLs and Libraries

Platforms

Win32, x64

See Also

Functions

Topics

Example

For an example, refer to LDicomNet::SetSocketOptions.

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

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