get_socket_paramT_get_socket_paramGetSocketParamGetSocketParamget_socket_param (算子名称)
名称
get_socket_paramT_get_socket_paramGetSocketParamGetSocketParamget_socket_param
— Get the value of a socket parameter.
参数签名
描述
get_socket_paramget_socket_paramGetSocketParamGetSocketParamGetSocketParamget_socket_param
reads the GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value
of the
GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name
for the specified socket connection.
Available parameters are 'timeout'"timeout""timeout""timeout""timeout""timeout", 'address_info'"address_info""address_info""address_info""address_info""address_info",
'SO_SNDBUF'"SO_SNDBUF""SO_SNDBUF""SO_SNDBUF""SO_SNDBUF""SO_SNDBUF", 'SO_RCVBUF'"SO_RCVBUF""SO_RCVBUF""SO_RCVBUF""SO_RCVBUF""SO_RCVBUF", 'SO_BROADCAST'"SO_BROADCAST""SO_BROADCAST""SO_BROADCAST""SO_BROADCAST""SO_BROADCAST", and
'TCP_NODELAY'"TCP_NODELAY""TCP_NODELAY""TCP_NODELAY""TCP_NODELAY""TCP_NODELAY".
The parameter 'address_info'"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_paramSetSocketParamSetSocketParamSetSocketParamset_socket_param
for a description of the other values.
运行信息
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
参数表
SocketSocketSocketSocketsocketsocket
(input_control) socket →
HSocket, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Socket number.
GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name
(input_control) string(-array) →
HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Name of the socket parameter.
List of values:
'SO_BROADCAST'"SO_BROADCAST""SO_BROADCAST""SO_BROADCAST""SO_BROADCAST""SO_BROADCAST", 'SO_RCVBUF'"SO_RCVBUF""SO_RCVBUF""SO_RCVBUF""SO_RCVBUF""SO_RCVBUF", 'SO_SNDBUF'"SO_SNDBUF""SO_SNDBUF""SO_SNDBUF""SO_SNDBUF""SO_SNDBUF", 'TCP_NODELAY'"TCP_NODELAY""TCP_NODELAY""TCP_NODELAY""TCP_NODELAY""TCP_NODELAY", 'address_info'"address_info""address_info""address_info""address_info""address_info", 'timeout'"timeout""timeout""timeout""timeout""timeout"
GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value
(output_control) string →
HTupleUnion[float, int, str]HTupleHtuple (string / real / integer) (string / double / int / long) (HString / double / Hlong) (char* / double / Hlong)
Value of the socket parameter.
可能的前置算子
open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectOpenSocketConnectopen_socket_connect
,
socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectSocketAcceptConnectsocket_accept_connect
可能的后置算子
set_socket_paramset_socket_paramSetSocketParamSetSocketParamSetSocketParamset_socket_param
参考其它
set_socket_paramset_socket_paramSetSocketParamSetSocketParamSetSocketParamset_socket_param
模块
Foundation