 |
Purpose
Opens an Internet socket connection to a remote host in order to exchange data over a TCP/IP port.
Syntax
Socket.Connect (HostName, Port, Timeout)
HostName |
The DNS name of the remote host. This name is resolved to the proper IP address. |
Port |
The TCP/IP port on the remote host (for example, 80 for HTTP, 23 for telnet). |
Timeout |
The time (in seconds) to wait for a connection before deciding that the remote host isn't responding. The application will pause until the connection is established, but will allow other application and FirstClass client activity to continue normally. If the connection fails due to a network error or timeout, an error is triggered. |
Example
Dim sockme as Socket
sockme.Connect (RemoteHost, 80, 60)
|  |