DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomServer Class / Listen Method / Listen(Int32,String) Method

The TCP port on which to receive connections

IP address to listen on







In This Topic
    Listen(Int32,String) Method
    In This Topic
    Open a TCP port to listen for incoming DICOM Connections, specified by port number and IP address
    Syntax
    'Declaration
     
    
    Public Overloads Sub Listen( _
       ByVal Port As System.Integer, _
       ByVal Address As System.String _
    ) 
    'Usage
     
    
    Dim instance As DicomServer
    Dim Port As System.Integer
    Dim Address As System.String
     
    instance.Listen(Port, Address)
    public void Listen( 
       System.int Port,
       System.string Address
    )
    public procedure Listen( 
        Port: System.Integer;
        Address: System.String
    ); 
    public function Listen( 
       Port : System.int,
       Address : System.String
    );
    public: void Listen( 
       System.int Port,
       System.string* Address
    ) 
    public:
    void Listen( 
       System.int Port,
       System.String^ Address
    ) 

    Parameters

    Port

    The TCP port on which to receive connections

    Address

    IP address to listen on

    Remarks

    This is the secure equivalent of the Listen method.

    Different ports must be used for secure and non-secure associations, as the security negotiation occurs before DICOM negotiation.

    More than one port may be active simultaneously. The listening sockets are all closed when the control is de-activated.

    Closing a “listening” socket has no effect on currently active associations that connected via that socket.

    If the IP address is used, then Address must be either in dotted form, or a resolvable name.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also