socket_error(3)

NAME
socket_error() - return a text description of a socket error

SYNOPSIS
#include <socket.h>
#include <socket_errors.h>
string socket_error(int error)

DESCRIPTION
socket_error() returns a string describing the error signified by error.

RETURN VALUES
socket_error() returns:

    a string describing the error on success.

    "socket_error: invalid error number" on bad input.

SEE ALSO
socket_create(3), socket_connect(3)