Sock.Connect Method

Top  Previous  Next

 

Function:

For the selected socket (selection is made through sock.num) causes the socket to attempt to connect to the target host.

Syntax:

sock.connect

Returns:

---

See Also:


 


Details

The target is specified by the sock.targetport and sock.targetip (unless, for UDP, the socket is to broadcast the data- see the sock.targetbcast property). Outgoing connection will be attempted through the network interface defined by the sock.targetinterface property.

Method invocation will have effect only if connection was closed at the time when the method was called (sock.state in one of PL_SST_CLOSED states).