socket |
The abstract base of the Network<ToolKit> socket hierarchy. This class defines all behaviors common to all types of socket elements including the following.
The two derived classes of os_socket
are os_tcp_connection_server and os_connectable_socket
.
true if this socket's descriptor value is less
than socket 's.true if this socket's descriptor value is the
same as socket 's.true , closes
the descriptor on destruction.true if this socket will close its descriptor
on destruction. Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
errno . Throws: os_network_toolkit_error
getsockopt()
"C" library function. For level level ,
store the socket option selected by code into the
buffer pointed to by storage , which is size
bytes long. Upon return, size is set to the actual
size of the data returned in the structure pointed to storage
. Refer the man pages of getsockopt() library
function for information on different socket options. Throws: os_network_toolkit_error
true if this socket is open.false , the socket immediately returns on close()
and the system tries to deliver the unsent messages. If flag
is true , the system tries to deliver unsent
messages for up to seconds seconds and then
discards any remaining unsent messages. If flag is
true and seconds is 0
, the socket processes a close() by discarding
unsent messages and returning immediately. Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
true
, set the socket to nonblocking. Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
true if this socket can reuse a local address. Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
true if regular routing is enabled. If regular
routing is disabled, messages are sent directly to the network interface
specified by the network portion of the destination address. Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
setsockopt()
"C" library function. For level level ,
set the socket option selected by code into the
buffer pointed to by storage , which is size
bytes long. Upon return, size is set to the actual
size of the data returned in the structure pointed to storage
. Refer the man pages of setsockopt() library
function for information on different socket options. Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
SOCK_STREAM = 1
, SOCK_DGRAM = 2 ,
SOCK_RAW = 3 , SOCK_RDM
= 4 , ... ).Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved - For use by licensed users only.