Teonet library
0.4.7
|
#include "teonet.hpp"
Macros | |
#define | TCQUE_VERSION "0.0.2" |
Functions | |
void | kq_cb (uint32_t id, int type, void *data) |
Callback Queue callback (the same as callback queue event). More... | |
void | event_cb (teo::Teonet &teo, teo::teoEvents event, void *data, size_t data_len, void *user_data) |
Teonet Events callback. More... | |
int | main (int argc, char **argv) |
Main QUEUE callback example function. More... | |
#define TCQUE_VERSION "0.0.2" |
Referenced by main().
void event_cb | ( | teo::Teonet & | teo, |
teo::teoEvents | event, | ||
void * | data, | ||
size_t | data_len, | ||
void * | user_data | ||
) |
Teonet Events callback.
ke | Pointer to ksnetEvMgrClass |
event | Teonet Event (ksnetEvMgrEvents) |
data | Events data |
data_len | Data length |
user_data | Some user data (may be set in ksnetEvMgrInitPort()) |
References cq, EV_K_CQUE_CALLBACK, EV_K_STARTED, EV_K_STOPPED, EV_K_TIMER, teo::Teonet::getCQueR(), kq_cb(), and teo::Teonet::stop().
Referenced by main().
void kq_cb | ( | uint32_t | id, |
int | type, | ||
void * | data | ||
) |
Callback Queue callback (the same as callback queue event).
This function calls at timeout or after ksnCQueExec calls
id | Calls ID |
type | Type: 0 - timeout callback; 1 - successful callback |
data | User data inserted in teo::CQue::add |
Referenced by event_cb().
int main | ( | int | argc, |
char ** | argv | ||
) |
Main QUEUE callback example function.
argc | Number of arguments |
argv | Arguments array |
References event_cb(), TCQUE_VERSION, and VERSION.