close TCP UDP

Terminate communication and free a socket. See function NetSock_Close() for more information.

Files

net_bsd.h/net_bsd.c

Prototype

int  close (int  sock_id);

Arguments

sock_id

Socket descriptor/handle identifier of socket to close.

Returned Value

0, if no error(s).

-1, otherwise.