LEADTOOLS Medical (Leadtools.Dicom assembly)
LEAD Technologies, Inc

Connect Method (DicomNet)








The IP address of the host computer (the SCP's address).
The port number of the host computer (the SCP's port).
The IP address of the peer computer to which to connect (the SCU's address).
The port number of the peer computer to which to connect (the SCU's port).
Connects an SCU to an SCP. .NET support WinRT support
Syntax
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
)
ObjectiveC Syntax
 function Leadtools.Dicom.Networking.DicomNet.Connect( 
   hostAddress ,
   hostPort ,
   peerAddress ,
   peerPort 
)
public:
void Connect( 
   String^ hostAddress,
   int hostPort,
   String^ peerAddress,
   int peerPort
) 

Parameters

hostAddress
The IP address of the host computer (the SCP's address).
hostPort
The port number of the host computer (the SCP's port).
peerAddress
The IP address of the peer computer to which to connect (the SCU's address).
peerPort
The port number of the peer computer to which to connect (the SCU's port).
Remarks
If hostAddress is an empty string or a null reference (Nothing in Visual Basic), the IP address will be the local computer's address.

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.

Example
For an example, refer to SendAssociateRequest.
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

Reference

DicomNet Class
DicomNet Members
Startup Method
OnAccept Method
Listen Method

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features