L_DicomInitializeNet

#include "ltdic.h"

L_LTDIC_API L_INT L_DicomInitializeNet(hNet, pszPath, nMode, pCtxCreate)

HDICOMNET hNet;

a DICOM Network handle

L_TCHAR *pszPath;

character string

L_INT32 nMode;

initialization mode

pL_SSL_CTX_CREATE pCtxCreate;

pointer to a structure

This function is to be used in conjunction with the L_DicomCreateNetExt function in order to change security options from the defaults. This function is available in the Medical Imaging Suite toolkits.

Parameter Description
hNet

A DICOM Network handle.

pszPath Character string that contains the location of the temporary files.
nMode

Flag that indicates the security mode to use when initializing the network structure. This should be the same flag that was used in the L_DicomCreateNetExt function. Possible values are:

 ValueMeaning
 DICOM_SECURE_NONENo security mode.
 DICOM_SECURE_ISCLIntegrated Secure Communication Layer security mode.
 DICOM_SECURE_TLSTransport Layer Security security mode.
pCtxCreate

Pointer to the L_SSL_CTX_CREATE structure that is used to modify the security defaults. This structure is used only if the nMode flag is DICOM_SECURE_TLS. Pass NULL to get the default values.

Returns

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

Comments

This function is to be used in conjunction with the L_DicomCreateNetExt function when changing security options from the defaults. Note that when using the L_DicomCreateNetExt function it is also necessary to call L_DicomInitializeNet in order to prepare the DICOMNET handle for use. Use the pCtxCreate parameter when the nMode flag is set to DICOM_SECURE_TLS.

Note that the following uses of the LDicomNet constructors are functionally equivalent:

1.

hNET = L_DicomCreateNet(pszPath, nMode); 

2.

L_DicomCreateNetExt(pszPath, nMode, 0); 
 if (hNet)   
    L_DicomInitializeNet(pszPath, nMode, NULL); 

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.

Platforms

Win32, x64, Linux.

See Also

Functions:

L_DicomCreateNet, L_DicomCreateNetExt

Example

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

LEADTOOLS DICOM C API Help