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

get_socket_descriptor( : : Socket : SocketDescriptor)

Herror T_get_socket_descriptor(const Htuple Socket, Htuple* SocketDescriptor)

void GetSocketDescriptor(const HTuple& Socket, HTuple* SocketDescriptor)

Hlong HSocket::GetSocketDescriptor() const

static void HOperatorSet.GetSocketDescriptor(HTuple socket, out HTuple socketDescriptor)

int HSocket.GetSocketDescriptor()

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

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