See Also

Tcp Class  | Tcp Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

server
Remote hostname or address in dot notation.
serverPort
Remote port, a number between 1 and 65535, inclusive.
client
Optional local hostname or address in dot notation. Use "" as default.
clientPortMin
The minimum client port number to use as a local interface.
clientPortMax
The maximum client port number to use as a local interface.
See Also Languages PowerTCP SSL Sockets for .NET

Connect(String,Int32,String,Int32,Int32) Method

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 )

Parameters

server
Remote hostname or address in dot notation.
serverPort
Remote port, a number between 1 and 65535, inclusive.
client
Optional local hostname or address in dot notation. Use "" as default.
clientPortMin
The minimum client port number to use as a local interface.
clientPortMax
The maximum client port number to use as a local interface.

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Tcp Class  | Tcp Members  | Overload List


Send comments on this topic.

Documentation version 1.1.2.0.

© 2008 Dart Communications.  All rights reserved.