DicomObjects.NET.V8
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 Socket, _
       ByVal Stream As Stream, _
       ByVal CallingAE As String, _
       ByVal CalledAE As String _
    ) 
    'Usage
     
    Dim instance As DicomAssociation
    Dim Socket As Socket
    Dim Stream As Stream
    Dim CallingAE As String
    Dim CalledAE As String
     
    instance.Open(Socket, Stream, CallingAE, CalledAE)
    public void Open( 
       Socket Socket,
       Stream Stream,
       string CallingAE,
       string CalledAE
    )
    public:
    void Open( 
       Socket^ Socket,
       Stream^ Stream,
       String^ CallingAE,
       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.0 or higher

    See Also