.\"close a socket .TH socket_close 3 "5 Sep 1994" MudOS "LPC Library Functions" .SH NAME socket_close() - close a socket .SH SYNOPSIS .nf #include <socket_err.h> int socket_close( int s ); .SH DESCRIPTION socket_close() closes socket s. This frees a socket efun slot for use. .SH RETURN VALUES socket_close() returns: .IP EESUCCESS on success. .IP a negative value indicated below on error. .SH ERRORS .TP 15 EEFDRANGE Descriptor out of range. .TP EEBADF Descriptor is invalid. .TP EESECURITY Security violation attempted. .SH SEE ALSO socket_accept(3), socket_create(3)