Connect method (ILEADDicomNet)

VB.NET example

C# example

Visual Basic example

Visual C++ 6.0 example

 

Syntax

short Connect (BSTR pszHost, long lHostPort, BSTR pszPeer, long lPeerPort);

Overview

Refer to Working with DICOM Network Connections.

Remarks

(Medical Imaging Suite only) Connects an SCU to an SCP.

If pszHostAddress is "" or NULL, the IP address will be the local computer's address.

If nHostPort is 0, the port number will be the number of the first available port.

To connect to an SCP as an SCU, you must first create and initialize a handle to the DICOM Network using the StartUp method. Then call the Connect method to establish the connection.

To use your computer as an SCP, you must first create and initialize a handle to the DICOM Network using the StartUp method. Then call the Listen method to listen for incoming connection requests.

When an SCU calls this function, it generates a NetAccept event on the SCP.

See Also

Elements:

StartUp method, Listen method

Topics:

DICOM Network Connection: Creating a Network Connection