DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomAssociation Class / Open Method / Open(Socket,Stream,String,String) Method
Specifies the underlying Socket through which an association should be made.

The NetworkStream via which the connection is to be made

Name to quote for this Application Entity

Name of remote Application Entity







In This Topic
    Open(Socket,Stream,String,String) Method
    In This Topic
    Open a DICOM association over an independently created System.Net.Sockets.NetworkStream
    Syntax
    'Declaration
     
    
    Public Overloads Sub Open( _
       ByVal Socket As System.Net.Sockets.Socket, _
       ByVal Stream As System.IO.Stream, _
       ByVal CallingAE As System.String, _
       ByVal CalledAE As System.String _
    ) 
    'Usage
     
    
    Dim instance As DicomAssociation
    Dim Socket As System.Net.Sockets.Socket
    Dim Stream As System.IO.Stream
    Dim CallingAE As System.String
    Dim CalledAE As System.String
     
    instance.Open(Socket, Stream, CallingAE, CalledAE)
    public void Open( 
       System.Net.Sockets.Socket Socket,
       System.IO.Stream Stream,
       System.string CallingAE,
       System.string CalledAE
    )
    public procedure Open( 
        Socket: System.Net.Sockets.Socket;
        Stream: System.IO.Stream;
        CallingAE: System.String;
        CalledAE: System.String
    ); 
    public function Open( 
       Socket : System.Net.Sockets.Socket,
       Stream : System.IO.Stream,
       CallingAE : System.String,
       CalledAE : System.String
    );
    public: void Open( 
       System.Net.Sockets.Socket* Socket,
       System.IO.Stream* Stream,
       System.string* CallingAE,
       System.string* CalledAE
    ) 
    public:
    void Open( 
       System.Net.Sockets.Socket^ Socket,
       System.IO.Stream^ Stream,
       System.String^ CallingAE,
       System.String^ CalledAE
    ) 

    Parameters

    Socket
    Specifies the underlying Socket through which an association should be made.
    Stream

    The NetworkStream via which the connection is to be made

    CallingAE

    Name to quote for this Application Entity

    CalledAE

    Name of remote Application Entity

    Remarks

    This version is useful in some security scenarios, as the NetworkStream may be negotiated and verified before starting DICOM negoations. Note that both the NetworkStream and underlying Socket need to be specified, as some controls (such as timeout values) are only valid when applied to the socket. This method returns, after the connection has been established. If there is a protocol failure, then a trappable DicomException is thrown.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also