IIPSocket.tcpSocket

Calls socket() to create a TCP/IP socket, setting this.fd to the file descriptor.

class IIPSocket
int
tcpSocket
(
bool nonblocking = false
)

Parameters

nonblocking bool

true: make the socket nonblocking, false: make it blocking

Return Value

Type: int

the socket file descriptor on success or -1 on failure. On failure errno is set appropriately and this.fd is -1.

Meta