prolog::socket_close/1¶
socket_close(+ SOCKET)*
Close socket SOCKET. Note that sockets used in socket_connect
(that is, client sockets) should not be closed with socket_close
, as they will be automatically closed when the corresponding stream is closed with close//11 or close//22.