Export (0) Print
Expand All

Visual Basic: Winsock Control

Visual Studio 6.0

Connect Method

See Also    Example    Applies To

Requests a connection to a remote computer.

Syntax

object.Connect remoteHost, remotePort

The Connect method syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
remoteHost Required. The name of the remote computer to connect to.
remotePort The port of the remote computer to connect to.

Return Value

None

Remarks

You must invoke the Connect method when attempting to establish a TCP connection.

Show:
© 2014 Microsoft