DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomServer Class / Accept Method
The underlying socket
A stream based on that socket






In This Topic
    Accept Method
    In This Topic
    Means to allow DICOM negotiation on an existing socket
    Syntax
    'Declaration
     
    
    Public Sub Accept( _
       ByVal Socket As System.Net.Sockets.Socket, _
       ByVal Stream As System.IO.Stream _
    ) 
    'Usage
     
    
    Dim instance As DicomServer
    Dim Socket As System.Net.Sockets.Socket
    Dim Stream As System.IO.Stream
     
    instance.Accept(Socket, Stream)
    public void Accept( 
       System.Net.Sockets.Socket Socket,
       System.IO.Stream Stream
    )
    public procedure Accept( 
        Socket: System.Net.Sockets.Socket;
        Stream: System.IO.Stream
    ); 
    public function Accept( 
       Socket : System.Net.Sockets.Socket,
       Stream : System.IO.Stream
    );
    public: void Accept( 
       System.Net.Sockets.Socket* Socket,
       System.IO.Stream* Stream
    ) 
    public:
    void Accept( 
       System.Net.Sockets.Socket^ Socket,
       System.IO.Stream^ Stream
    ) 

    Parameters

    Socket
    The underlying socket
    Stream
    A stream based on that socket
    Remarks

    Normally this is all handled internally by DicomObjects, but this method is provided for developers who may wish to use their own listening and authorisation mechanisms

    Note that only one association is allowed per TCP connection, so this does require a "new" TCP connection, though TLS negotiation etc. may of course have been performed.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also