Non-blocking I/O

Non-blocking I/O — Reading and writing data from blockable streams without blocking

Synopsis


#include <nhproxy/nhproxy.h>


NhProxyNB*  nhproxy_nb_open                 (nhproxy_io_func func,
                                             nhproxy_genericptr_t handle);
nhproxy_bool_t nhproxy_nb_close             (NhProxyNB *nb);
int         nhproxy_nb_read                 (NhProxyNB *nb,
                                             char *buf,
                                             int bytes,
                                             int blocking);

Description

Details

nhproxy_nb_open ()

NhProxyNB*  nhproxy_nb_open                 (nhproxy_io_func func,
                                             nhproxy_genericptr_t handle);

func :
handle :
Returns :

nhproxy_nb_close ()

nhproxy_bool_t nhproxy_nb_close             (NhProxyNB *nb);

nb :
Returns :

nhproxy_nb_read ()

int         nhproxy_nb_read                 (NhProxyNB *nb,
                                             char *buf,
                                             int bytes,
                                             int blocking);

nb :
buf :
bytes :
blocking :
Returns :