socket_close |
Discworld driver help |
socket_close |
Name
socket_close() - close a socket
Synopsis
#include <socket_errors.h>
int socket_close( int s );
Description
socket_close() closes socket `s'. This frees a socket efun slot for use. socket_close() returns EESUCCESS on success, and a negative value indicated below on error.
Errors
These errors are in <socket_errors.h>:
EEFDRANGE | Descriptor out of range. | |
EEBADF | Descriptor is invalid. | |
EESECURITY | Security violation attempted. |