Skip to main content

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>:

EEFDRANGEDescriptor out of range.
EEBADFDescriptor is invalid.
EESECURITYSecurity violation attempted.

See also

socket_accept(), socket_create()