Socket_destroy

Function Socket_destroy 

Source
pub unsafe extern "C" fn Socket_destroy(self_: Socket)
Expand description

destroy a socket (close the socket if a connection is established)

This function shall close the connection (if one is established) and free all resources allocated by the socket.

Implementation of this function is MANDATORY

ยงArguments

  • self - the client, connection or server socket instance