[Top]
Stdio
Stdio.Fd
|
Method Stdio.Fd()->connect()
- Method
connect
int(0..1) Stdio.Fd()->connect(string dest_addr, int dest_port)
int(0..1) Stdio.Fd()->connect(string dest_addr, int dest_port, string src_addr, int src_port)
- Description
-
Open a TCP/IP connection to the specified destination.
In nonblocking mode, success is indicated with the write-callback,
and failure with the close-callback or the read_oob-callback.
- Returns
Returns 1 on success, and 0 on failure.
- Note
In nonblocking mode 0 (zero) may be returned and Stdio.Fd.errno set to
EWOULDBLOCK or WSAEWOULDBLOCK. This should not be regarded
as a connection failure.
|