socket_close.3

MudOS_0.9.18/doc/efuns/sockets/socket_close.3 · 555 B

From the archive MudOS_0.9.18.tar.gz

Download the archive   « Back to the archive contents

.\"close a socket
.TH socket_close 3

.SH NAME
socket_close() - close a socket

.SH SYNOPSIS
.nf
#include <socket.h>
#include <socket_errors.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)

Site Stats

Snippets: 1791
Codebases: 571