VMS Help
TCPIP Services, Programming Interfaces, Sockets API, close()
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
Closes a connection and deletes a socket descriptor.
The $QIO equivalent is the $DASSGN system service.
Format
#include <unixio.h>
int close ( s );
s
A socket descriptor.
This function deletes a descriptor from the per-process object
(Compaq C structure) reference table. Associated TCP connections
close first.
If a call to the connect() function fails for a connection mode
socket, applications should use close() to deallocate the socket
and descriptor.
Related Functions
See also accept(), socket(), and write().
0 Successful completion.
-1 Error; errno is set to indicate the error.
EBADF The socket descriptor is invalid.
EINTR The close() function was interrupted by a
signal that was caught.
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.