DicomObjects.NET Core 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 Socket, _
       ByVal Stream As Stream, _
       ByVal CallingAET As String, _
       ByVal CalledAET As String _
    ) 
    'Usage
     
    
    Dim instance As DicomAssociation
    Dim Socket As Socket
    Dim Stream As Stream
    Dim CallingAET As String
    Dim CalledAET As String
     
    instance.Open(Socket, Stream, CallingAET, CalledAET)

    Parameters

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

    The NetworkStream via which the connection is to be made

    CallingAET

    Name to quote for this Application Entity

    CalledAET

    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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also