LEADTOOLS Medical (Leadtools.Dicom assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Listen(String,Int32,Int32) Method
See Also 
Leadtools.Dicom Namespace > DicomNet Class > Listen Method : Listen(String,Int32,Int32) Method



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.
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.
Establishes a connection to listen for incoming connection requests.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub Listen( _
   ByVal hostAddress As String, _
   ByVal hostPort As Integer, _
   ByVal maxNumberOfPeers As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomNet
Dim hostAddress As String
Dim hostPort As Integer
Dim maxNumberOfPeers As Integer
 
instance.Listen(hostAddress, hostPort, maxNumberOfPeers)
C# 
public void Listen( 
   string hostAddress,
   int hostPort,
   int maxNumberOfPeers
)
C++/CLI 
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.

Example

Remarks

If hostAddress is an empty string or a null reference (Nothing in Visual Basic), the IP address will be the local computer's address.

If hostAddress is "*", the IP address will be all of the local computer's addresses. This is useful if the local computer has more than one network interface and 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(String,Int32,String,Int32) to establish the connection.

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

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features