close_socketT_close_socketCloseSocketCloseSocketclose_socket (Operator)

Name

close_socketT_close_socketCloseSocketCloseSocketclose_socket — Close a socket.

Signature

close_socket( : : Socket : )

Herror T_close_socket(const Htuple Socket)

void CloseSocket(const HTuple& Socket)

void HSocket::CloseSocket() const

static void HOperatorSet.CloseSocket(HTuple socket)

void HSocket.CloseSocket()

def close_socket(socket: HHandle) -> None

Description

close_socketclose_socketCloseSocketCloseSocketclose_socket closes a socket that was previously opened with open_socket_acceptopen_socket_acceptOpenSocketAcceptOpenSocketAcceptopen_socket_accept, open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectopen_socket_connect, or socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectsocket_accept_connect. For a detailed example, see open_socket_acceptopen_socket_acceptOpenSocketAcceptOpenSocketAcceptopen_socket_accept.

Execution Information

This operator modifies the state of the following input parameter:

During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.

Parameters

SocketSocketSocketsocketsocket (input_control, state is modified)  socket HSocket, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Socket number.

Possible Predecessors

open_socket_acceptopen_socket_acceptOpenSocketAcceptOpenSocketAcceptopen_socket_accept, open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectopen_socket_connect, socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectsocket_accept_connect

Module

Foundation