Leadtools.Dicom.Networking Namespace > DicomNet Class : Connect Method |
public void Connect( string hostAddress, int hostPort, string peerAddress, int peerPort )
'Declaration Public Sub Connect( _ ByVal hostAddress As String, _ ByVal hostPort As Integer, _ ByVal peerAddress As String, _ ByVal peerPort As Integer _ )
'Usage Dim instance As DicomNet Dim hostAddress As String Dim hostPort As Integer Dim peerAddress As String Dim peerPort As Integer instance.Connect(hostAddress, hostPort, peerAddress, peerPort)
public void Connect( string hostAddress, int hostPort, string peerAddress, int peerPort )
function Leadtools.Dicom.Networking.DicomNet.Connect( hostAddress , hostPort , peerAddress , peerPort )
public: void Connect( String^ hostAddress, int hostPort, String^ peerAddress, int peerPort )
If hostPort is 0, the port number will be the number of the first available port.
To connect to an SCP as an SCU, you must first create a DicomNet object. Then call Connect to establish the connection.
To use your computer as an SCP, you must first create a DicomNet object. Then call Listen to listen for incoming connection requests.
When an SCU calls this method, it generates a call to IDicomEvents.OnAccept on the SCP.