get_socket_paramT_get_socket_paramGetSocketParamGetSocketParam (Operator)
Name
get_socket_paramT_get_socket_paramGetSocketParamGetSocketParam
— Get the value of a socket parameter.
Signature
Description
get_socket_paramget_socket_paramGetSocketParamGetSocketParamGetSocketParam
reads the GenParamValueGenParamValueGenParamValueGenParamValuegenParamValue
of the
GenParamNameGenParamNameGenParamNameGenParamNamegenParamName
for the specified socket connection.
Available parameters are 'timeout'"timeout""timeout""timeout""timeout", 'address_info'"address_info""address_info""address_info""address_info",
'SO_SNDBUF'"SO_SNDBUF""SO_SNDBUF""SO_SNDBUF""SO_SNDBUF", 'SO_RCVBUF'"SO_RCVBUF""SO_RCVBUF""SO_RCVBUF""SO_RCVBUF", 'SO_BROADCAST'"SO_BROADCAST""SO_BROADCAST""SO_BROADCAST""SO_BROADCAST", and
'TCP_NODELAY'"TCP_NODELAY""TCP_NODELAY""TCP_NODELAY""TCP_NODELAY".
The parameter 'address_info'"address_info""address_info""address_info""address_info" returns the IP address and port of the
local and the remote side of the specified socket connection.
See set_socket_paramset_socket_paramSetSocketParamSetSocketParamSetSocketParam
for a description of the other values.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
SocketSocketSocketSocketsocket
(input_control) socket →
HSocket, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Socket number.
GenParamNameGenParamNameGenParamNameGenParamNamegenParamName
(input_control) string(-array) →
HTupleHTupleHtuple (string) (string) (HString) (char*)
Name of the socket parameter.
List of values: 'SO_BROADCAST'"SO_BROADCAST""SO_BROADCAST""SO_BROADCAST""SO_BROADCAST", 'SO_RCVBUF'"SO_RCVBUF""SO_RCVBUF""SO_RCVBUF""SO_RCVBUF", 'SO_SNDBUF'"SO_SNDBUF""SO_SNDBUF""SO_SNDBUF""SO_SNDBUF", 'TCP_NODELAY'"TCP_NODELAY""TCP_NODELAY""TCP_NODELAY""TCP_NODELAY", 'address_info'"address_info""address_info""address_info""address_info", 'timeout'"timeout""timeout""timeout""timeout"
GenParamValueGenParamValueGenParamValueGenParamValuegenParamValue
(output_control) string →
HTupleHTupleHtuple (string / real / integer) (string / double / int / long) (HString / double / Hlong) (char* / double / Hlong)
Value of the socket parameter.
Possible Predecessors
open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectOpenSocketConnect
,
socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectSocketAcceptConnect
Possible Successors
set_socket_paramset_socket_paramSetSocketParamSetSocketParamSetSocketParam
See also
set_socket_paramset_socket_paramSetSocketParamSetSocketParamSetSocketParam
Module
Foundation