P_net_nonblock_t 3porty 2011-04-13 libporty manual

NAME

P_net_nonblock_t

SYNPOSIS

#include <libporty/net/network.h>

DESCRIPTION

Asynchronous (background) network operation is supported with many of the net package calls, which take an argument of type P_net_nonblock_t.nl;The type is an enum with the following values (Each property is a bit and bits may be or'd):
0 always wait until the operation finishes (block)
P_net_nonblock_connect do not block during connect, but the socket should become blocking after the connection is established. The caller should poll for writing (P_POLLOUT) for a pending connection.
P_net_nonblock_socket do not block for reading, but connect during connecting
P_net_nonblock_full P_net_nonblock_connect | P_net_nonblock_socket (never block)
P_net_nonblock_quit_on_error Default behaviour is that calls will try to set the non-blocking properties as ordered by the caller, but if setting them fails, the socket stays blocking and the call proceeds. Using this flag will change behaviour in a way that not being able to fullfil the non-blocking requirement is considered a fatal error. In other words, if this flag is set, calls either set up the sockets non-blocking or they return error without setting up anything.

P_net_nonblock_t 3porty 2011-04-13 libporty manual