C AMQP Protocol Engine API  0.7
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
selector.h File Reference
Include dependency graph for selector.h:

Go to the source code of this file.


#define PN_READABLE   (1)
#define PN_WRITABLE   (2)
#define PN_EXPIRED   (4)


typedef struct pn_selector_t pn_selector_t


PN_EXTERN pn_selector_tpn_selector (void)
PN_EXTERN void pn_selector_free (pn_selector_t *selector)
PN_EXTERN void pn_selector_add (pn_selector_t *selector, pn_selectable_t *selectable)
PN_EXTERN void pn_selector_update (pn_selector_t *selector, pn_selectable_t *selectable)
PN_EXTERN void pn_selector_remove (pn_selector_t *selector, pn_selectable_t *selectable)
PN_EXTERN int pn_selector_select (pn_selector_t *select, int timeout)
PN_EXTERN pn_selectable_tpn_selector_next (pn_selector_t *select, int *events)

Macro Definition Documentation

#define PN_EXPIRED   (4)
#define PN_READABLE   (1)
#define PN_WRITABLE   (2)

Typedef Documentation

typedef struct pn_selector_t pn_selector_t

Function Documentation

PN_EXTERN pn_selector_t* pn_selector ( void  )
PN_EXTERN void pn_selector_add ( pn_selector_t selector,
pn_selectable_t selectable 
PN_EXTERN void pn_selector_free ( pn_selector_t selector)
PN_EXTERN pn_selectable_t* pn_selector_next ( pn_selector_t select,
int *  events 
PN_EXTERN void pn_selector_remove ( pn_selector_t selector,
pn_selectable_t selectable 
PN_EXTERN int pn_selector_select ( pn_selector_t select,
int  timeout 
PN_EXTERN void pn_selector_update ( pn_selector_t selector,
pn_selectable_t selectable