P_net_err 3porty 2011-04-13 libporty manual

NAME

P_net_err

SYNPOSIS

#include <libporty/net/network.h>

DESCRIPTION

Many calls of the net package will return an int, which is zero for indicating a successful call and a negative error code. The list of codes can be found in network.h as enum P_net_err. Below is a description of each error code.
P_net_err_dns = -1 unable to resolve hostname or IP address
P_net_err_socket = -2 the system failed to allocate a socket
P_net_err_reuse = -3 can not reuse address (for local binding)
P_net_err_nonblock = -4 could not set socket to nonblocking
P_net_err_bind = -5 binding local address of the socket failed
P_net_err_listen = -6 listen(2) failed
P_net_err_connect = -7 connect(2) failed
P_net_err_broadcast = -8 could not broadcast
P_net_err_accept = -9 accept(2) failed
P_net_err_alloc = -10 could not allocate resource

P_net_err 3porty 2011-04-13 libporty manual