get_socket_descriptorT_get_socket_descriptorGetSocketDescriptorGetSocketDescriptorget_socket_descriptor (Operator)
Name
get_socket_descriptorT_get_socket_descriptorGetSocketDescriptorGetSocketDescriptorget_socket_descriptor
— Get the socket descriptor of a socket used by the operating system.
Signature
def get_socket_descriptor(socket: HHandle) -> int
Description
get_socket_descriptorget_socket_descriptorGetSocketDescriptorGetSocketDescriptorget_socket_descriptor
returns the socket descriptor used by
the operating system for the socket connection that is passed in
SocketSocketSocketsocketsocket
. The socket descriptor can be used in operating
system calls such as select
, read
, write
,
recv
, or send
.
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, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Socket number.
SocketDescriptorSocketDescriptorSocketDescriptorsocketDescriptorsocket_descriptor
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Socket descriptor used by the operating system.
Possible Predecessors
open_socket_acceptopen_socket_acceptOpenSocketAcceptOpenSocketAcceptopen_socket_accept
,
open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectopen_socket_connect
,
socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectsocket_accept_connect
See also
set_socket_paramset_socket_paramSetSocketParamSetSocketParamset_socket_param
Module
Foundation