close_socketT_close_socketCloseSocketCloseSocket (Operator)
Name
close_socketT_close_socketCloseSocketCloseSocket
— Close a socket.
Signature
Herror T_close_socket(const Htuple Socket)
void CloseSocket(const HTuple& Socket)
void HSocket::CloseSocket() const
Description
close_socketclose_socketCloseSocketCloseSocketCloseSocket
closes a socket that was previously opened with
open_socket_acceptopen_socket_acceptOpenSocketAcceptOpenSocketAcceptOpenSocketAccept
, open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectOpenSocketConnect
, or
socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectSocketAcceptConnect
. For a detailed example, see
open_socket_acceptopen_socket_acceptOpenSocketAcceptOpenSocketAcceptOpenSocketAccept
.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
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, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Socket number.
Possible Predecessors
open_socket_acceptopen_socket_acceptOpenSocketAcceptOpenSocketAcceptOpenSocketAccept
,
open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectOpenSocketConnect
,
socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectSocketAcceptConnect
Module
Foundation