Visual Basic (Declaration) | |
---|---|
Public Sub Listen( _ ByVal hostAddress As String, _ ByVal hostPort As Integer, _ ByVal maxNumberOfPeers As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void Listen( string hostAddress, int hostPort, int maxNumberOfPeers ) |
Managed Extensions for 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.
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: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family