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

The TCP port on which to receive connections

The address to listen on

The address family to use (IPv4 or IPv6)

The DicomObjects.Delegates.TlsAcceptor object used to accept secure connections







In This Topic
    Listen(Int32,String,AddressFamily,TlsAcceptor) Method
    In This Topic
    Open a TCP port to listen for secure incoming DICOM Connections on a specific IP address
    Syntax
    'Declaration
     
    
    Public Overloads Sub Listen( _
       ByVal Port As System.Integer, _
       ByVal Address As System.String, _
       ByVal IpAddressFamily As System.Net.Sockets.AddressFamily, _
       ByVal AcceptTls As TlsAcceptor _
    ) 
    'Usage
     
    
    Dim instance As DicomServer
    Dim Port As System.Integer
    Dim Address As System.String
    Dim IpAddressFamily As System.Net.Sockets.AddressFamily
    Dim AcceptTls As TlsAcceptor
     
    instance.Listen(Port, Address, IpAddressFamily, AcceptTls)
    public void Listen( 
       System.int Port,
       System.string Address,
       System.Net.Sockets.AddressFamily IpAddressFamily,
       TlsAcceptor AcceptTls
    )
    public procedure Listen( 
        Port: System.Integer;
        Address: System.String;
        IpAddressFamily: System.Net.Sockets.AddressFamily;
        AcceptTls: TlsAcceptor
    ); 
    public function Listen( 
       Port : System.int,
       Address : System.String,
       IpAddressFamily : System.Net.Sockets.AddressFamily,
       AcceptTls : TlsAcceptor
    );
    public: void Listen( 
       System.int Port,
       System.string* Address,
       System.Net.Sockets.AddressFamily IpAddressFamily,
       TlsAcceptor* AcceptTls
    ) 
    public:
    void Listen( 
       System.int Port,
       System.String^ Address,
       System.Net.Sockets.AddressFamily IpAddressFamily,
       TlsAcceptor^ AcceptTls
    ) 

    Parameters

    Port

    The TCP port on which to receive connections

    Address

    The address to listen on

    IpAddressFamily

    The address family to use (IPv4 or IPv6)

    AcceptTls

    The DicomObjects.Delegates.TlsAcceptor object used to accept secure connections

    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.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also