Leadtools.Dicom.Networking Namespace > DicomNet Class : Listen Method |
public void Listen( string hostAddress, int hostPort, int maxNumberOfPeers )
'Declaration Public Sub Listen( _ ByVal hostAddress As String, _ ByVal hostPort As Integer, _ ByVal maxNumberOfPeers As Integer _ )
'Usage Dim instance As DicomNet Dim hostAddress As String Dim hostPort As Integer Dim maxNumberOfPeers As Integer instance.Listen(hostAddress, hostPort, maxNumberOfPeers)
public void Listen( string hostAddress, int hostPort, int maxNumberOfPeers )
ObjectiveC Syntax
function Leadtools.Dicom.Networking.DicomNet.Listen( hostAddress , hostPort , maxNumberOfPeers )
public: void Listen( String^ hostAddress, int hostPort, int maxNumberOfPeers )
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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2