←Select platform

Connect Method (DicomNet)

Summary

Connects an SCU to an SCP.

Syntax

C#
VB
WinRT C#
C++
public void Connect(  
   string hostAddress, 
   int hostPort, 
   string peerAddress, 
   int peerPort 
) 
Public Sub Connect( _ 
   ByVal hostAddress As String, _ 
   ByVal hostPort As Integer, _ 
   ByVal peerAddress As String, _ 
   ByVal peerPort As Integer _ 
)  
public void Connect(  
   string hostAddress, 
   int hostPort, 
   string peerAddress, 
   int peerPort 
) 
 function Leadtools.Dicom.Networking.DicomNet.Connect(  
   hostAddress , 
   hostPort , 
   peerAddress , 
   peerPort  
) 
public: 
void Connect(  
   String^ hostAddress, 
   int hostPort, 
   String^ peerAddress, 
   int peerPort 
)  

Parameters

hostAddress
The IP address of the host computer (the SCP's address).

hostPort
The port number of the host computer (the SCP's port).

peerAddress
The IP address of the peer computer to which to connect (the SCU's address).

peerPort
The port number of the peer computer to which to connect (the SCU's port).

Remarks

If hostAddress is an empty string or a null reference (Nothing in VB), the IP address will be the local computer's address. If hostPort 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 a DicomNet object. Then call Connect to establish the connection.

To use your computer as an SCP, you must first create a DicomNet object. Then call Listen to listen for incoming connection requests.

When an SCU calls this method, it generates a call to OnAccept on the SCP.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom Assembly