need to bind() first
calling shutdown() before this is recommended for connection- oriented sockets
returns the length, in bytes, of the actual result - very different from getsockopt()
Helper function to handle the adding and dropping of group membership.
need to bind() first
Configure this instance
Receive data on the connection. Returns the number of bytes actually received, 0 if the remote side has closed the connection, or ERROR on failure. If the socket is blocking, receive waits until there is data to be received.
Receive data and get the remote endpoint Address. Returns the number of bytes actually received, 0 if the remote side has closed the connection, or ERROR on failure. If the socket is blocking, receiveFrom waits until there is data to be received.
ditto - assumes you connect()ed
Open/reopen a native socket for this instance
Send data on the connection. Returns the number of bytes actually sent, or ERROR on failure. If the socket is blocking and there is no buffer space left, send waits.
Send data to a specific destination Address. If the destination address is not specified, a connection must have been made and that address is used. If the socket is blocking and there is no buffer space left, sendTo waits.
ditto - assumes you connect()ed
The shutdown function shuts down the connection of the socket. Depending on the argument value, it will:
enable/disable address reuse
getter
setter
Return socket error status
Return the underlying OS handle of this Conduit
return the default host address (IPv4)
return the hostname
Is this socket still alive? A closed socket is considered to be dead, but a shutdown socket is still alive.
Return the last error
set linger timeout
return the local address of the current connection (IPv4)
enable/disable noDelay option (nagle)
return the remote address of the current connection (IPv4)