←Select platform

Listen Method (DicomNet)

Summary

Establishes a connection to listen for incoming connection requests.

Syntax

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

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).

maxNumberOfPeers
The maximum number of SCUs that may be connected to the SCP.

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 a server as a client, you must first create and initialize 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.

Requirements

Target Platforms

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

Leadtools.Dicom Assembly