get_socket_descriptorT_get_socket_descriptorGetSocketDescriptorGetSocketDescriptor (Operator)

Name

get_socket_descriptorT_get_socket_descriptorGetSocketDescriptorGetSocketDescriptor — 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()

Description

get_socket_descriptorget_socket_descriptorGetSocketDescriptorGetSocketDescriptorGetSocketDescriptor 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

Parameters

SocketSocketSocketSocketsocket (input_control)  socket HSocket, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Socket number.

SocketDescriptorSocketDescriptorSocketDescriptorSocketDescriptorsocketDescriptor (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Socket descriptor used by the operating system.

Possible Predecessors

open_socket_acceptopen_socket_acceptOpenSocketAcceptOpenSocketAcceptOpenSocketAccept, open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectOpenSocketConnect, socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectSocketAcceptConnect

See also

set_socket_paramset_socket_paramSetSocketParamSetSocketParamSetSocketParam

Module

Foundation