Skip to content

get_socket_descriptorGetSocketDescriptorGetSocketDescriptorget_socket_descriptorT_get_socket_descriptor🔗

Short description🔗

get_socket_descriptorGetSocketDescriptorGetSocketDescriptorget_socket_descriptorT_get_socket_descriptor — Get the socket descriptor of a socket used by the operating system.

Signature🔗

get_socket_descriptor( socket Socket, out integer SocketDescriptor )void GetSocketDescriptor( const HTuple& Socket, HTuple* SocketDescriptor )static void HOperatorSet.GetSocketDescriptor( HTuple socket, out HTuple socketDescriptor )def get_socket_descriptor( socket: HHandle ) -> int

Herror T_get_socket_descriptor( const Htuple Socket, Htuple* SocketDescriptor )

Hlong HSocket::GetSocketDescriptor( ) const

int HSocket.GetSocketDescriptor( )

Description🔗

get_socket_descriptorGetSocketDescriptor returns the socket descriptor used by the operating system for the socket connection that is passed in Socketsocketsocket. The socket descriptor can be used in operating system calls such as select, read, write, recv, or send.

Execution information🔗

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🔗

Socketsocketsocket (input_control) socket → (handle)HTuple (HHandle)HSocket, HTuple (IntPtr)HHandleHtuple (handle)

Socket number.

SocketDescriptorsocketDescriptorsocket_descriptor (output_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Socket descriptor used by the operating system.

Combinations with other operators🔗

Combinations

Possible predecessors

open_socket_acceptOpenSocketAccept, open_socket_connectOpenSocketConnect, socket_accept_connectSocketAcceptConnect

See also

set_socket_paramSetSocketParam

Module🔗

Foundation