Functions
MyQttd Loop: socket descriptor watcher

Functions

void myqttd_loop_close (MyQttdLoop *loop, axl_bool notify)
 Finishes the provided MyQttdLoop, releasing resources and stopping its resources. More...
 
MyQttdLoopmyqttd_loop_create (MyQttdCtx *ctx)
 Creates a new loop instance (starting a new independent thread) used to watch a list of file descriptors (usually sockets).
 
MyQttdCtxmyqttd_loop_ctx (MyQttdLoop *loop)
 Allows to get the MyQttdCtx associated to the provided MyQttdLoop. More...
 
void myqttd_loop_set_read_handler (MyQttdLoop *loop, MyQttdLoopOnRead on_read, axlPointer ptr, axlPointer ptr2)
 Allows to configure the default read handler (MyQttdLoopOnRead) to be used by all notifications for each descriptor not having its own particular on read handler. More...
 
void myqttd_loop_unwatch_descriptor (MyQttdLoop *loop, int descriptor, axl_bool wait_until_unwatched)
 Allows to unwatch the provided descriptor from the provided loop. More...
 
void myqttd_loop_watch_descriptor (MyQttdLoop *loop, int descriptor, MyQttdLoopOnRead on_read, axlPointer ptr, axlPointer ptr2)
 Allows to configure a descriptor to be watched, providing optionally an on read handler (MyQttdLoopOnRead) to be used only to notify on read status on the provided descriptor. More...
 
int myqttd_loop_watching (MyQttdLoop *loop)
 Allows to get how many descriptors are being watched on the provided loop. More...
 

Detailed Description