AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
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

[sh-index] Back to list of manuals