.connect Method

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 sock.targetport and sock.targetip (unless, for UDP, the socket is to broadcast the data — see the sock.targetbcast property). An outgoing connection will be attempted through the network interface defined by the sock.targetinterface property.

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


.connect Method

Details