LEADTOOLS Medical (Leadtools.Dicom assembly)

Connect(String,Int32,String,Int32) Method

Show in webframe







The IP address of the Called AE computer (the SCU's address).
The port number of the Called AE computer (the SCU's port).
The IP address of the Calling AE computer to which to connect (the SCP's address).
The port number of the Calling AE computer to which to connect (the SCP's port).
Connects an Called AE to an Calling AE.
Syntax
public void Connect( 
   string hostAddress,
   int hostPort,
   string peerAddress,
   int peerPort
)
'Declaration
 
Public Overloads 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.DicomNet.Connect(String,Int32,String,Int32)( 
   hostAddress ,
   hostPort ,
   peerAddress ,
   peerPort 
)
public:
void Connect( 
   String^ hostAddress,
   int hostPort,
   String^ peerAddress,
   int peerPort
) 

Parameters

hostAddress
The IP address of the Called AE computer (the SCU's address).
hostPort
The port number of the Called AE computer (the SCU's port).
peerAddress
The IP address of the Calling AE computer to which to connect (the SCP's address).
peerPort
The port number of the Calling AE computer to which to connect (the SCP'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. In most cases, you should pass 0 for this parameter. If you pass any port number other than 0, that port number will be used for the first connection and when you close the connection, LEADTOOLS will wait for the internal TCP timeout before releasing the port. This may lead to problems reconnecting. If you pass 0, then on subsequent connections LEADTOOLS will use the next available port.

To connect to an Calling AE as an Called AE, you must first create a DicomNet object. Then call Connect(String,Int32,String,Int32) to establish the connection.

To use your computer as an Calling AE, you must first create a DicomNet object. Then call Listen(String,Int32,Int32) to listen for incoming connection requests.

When an Called AE calls this method, it generates a call to OnAccept on the Calling AE.

Example
For an example, refer to SendAssociateRequest.
Requirements

Target Platforms

See Also

Reference

DicomNet Class
DicomNet Members
Overload List
Startup Method
OnAccept Method
Listen(String,Int32,Int32) Method

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 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