Dart.PowerTCP.SslSockets Namespace > Tcp Class > Connect Method : Connect(String,Int32,String,Int32,Int32) Method |
Connect to a host, specifying the local interface and a range of local ports to use.
[Visual Basic]
<DescriptionAttribute("Connect to a server using a specific interface and port range.")>
Overloads Public Overridable Sub Connect( _
ByVal server As String, _
ByVal serverPort As Integer, _
ByVal client As String, _
ByVal clientPortMin As Integer, _
ByVal clientPortMax As Integer _
)
[C#]
[DescriptionAttribute("Connect to a server using a specific interface and port range.")]
public virtual void Connect(
string server,
int serverPort,
string client,
int clientPortMin,
int clientPortMax
);
[C++]
[DescriptionAttribute("Connect to a server using a specific interface and port range.")]
public: virtual void Connect(
string* server,
int serverPort,
string* client,
int clientPortMin,
int clientPortMax
)
[C++/CLI]
[DescriptionAttribute("Connect to a server using a specific interface and port range.")]
public:
virtual void Connect(
String^ server,
int serverPort,
String^ client,
int clientPortMin,
int clientPortMax
)
The Connect method establishes a network connection between the specified local network interface/port and the device identified by remote network address/port. If no exception is thrown, the connection has succeeded and the Connected property will return true after this method returns. Once the connection has been made, you can send/receive data to/from the server.
This method always blocks until the attempted connection succeeds or fails.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Tcp Class | Tcp Members | Overload List
Send comments on this topic.
Documentation version 1.1.2.0.
© 2008 Dart Communications. All rights reserved.