Syntax: NetLib - int close (int s);
Sockets - int socketclose (int s);
UnixLib - int close (int s);
Header: NetLib - (unprototyped)
Sockets - socklib.h
UnixLib - unistd.h
Returns: 0 for success, EOF if failed
Close a socket, freeing the descriptor for reuse. For stream sockets, this is roughly equivalent to calling Socket_Shutdown or shutdown() with a type code of 2, whilst for datagram sockets this call immediately deletes the socket.
C definition SWI definition
|
|
|