
socket_close(3)       LPC Library Functions       socket_close(3)

NNAAMMEE
       socket_close() - close a socket

SSYYNNOOPPSSIISS
       #include <socket_err.h>

       int socket_close( int s );

DDEESSCCRRIIPPTTIIOONN
       socket_close()  closes  socket s. This frees a socket efun
       slot for use.

RREETTUURRNN VVAALLUUEESS
       socket_close() returns:

              EESUCCESS on success.

              a negative value indicated below on error.

EERRRROORRSS
       EEFDRANGE      Descriptor out of range.

       EEBADF         Descriptor is invalid.

       EESECURITY     Security violation attempted.

SSEEEE AALLSSOO
       socket_accept(3), socket_create(3)

Majik                      26 Jul 1997                          1

