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_descriptorGetSocketDescriptorGetSocketDescriptorGetSocketDescriptorget_socket_descriptor
returns the socket descriptor used by
the operating system for the socket connection that is passed in
SocketSocketSocketSocketsocketsocket
. 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
SocketSocketSocketSocketsocketsocket
(input_control) socket →
HSocket, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Socket number.
SocketDescriptorSocketDescriptorSocketDescriptorSocketDescriptorsocketDescriptorsocket_descriptor
(output_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Socket descriptor used by the operating system.
Possible Predecessors
open_socket_acceptopen_socket_acceptOpenSocketAcceptOpenSocketAcceptOpenSocketAcceptopen_socket_accept
,
open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectOpenSocketConnectopen_socket_connect
,
socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectSocketAcceptConnectsocket_accept_connect
See also
set_socket_paramset_socket_paramSetSocketParamSetSocketParamSetSocketParamset_socket_param
Module
Foundation