version 1.1.2.2, 2012/01/27 15:12:27
|
version 1.1.2.3, 2012/04/25 16:25:52
|
Line 19 typedef struct {
|
Line 19 typedef struct {
|
#define mqtt_srv_getCmd(x, _cmd) (assert((x)), (x)->cmds[(_cmd)]) |
#define mqtt_srv_getCmd(x, _cmd) (assert((x)), (x)->cmds[(_cmd)]) |
|
|
|
|
|
#ifdef API_SERVER_SIDE |
/* |
/* |
* mqtt_srv_Init() Init server side actor |
* mqtt_srv_Init() Init server side actor |
* |
* |
Line 42 void mqtt_srv_Fini(mqtt_srv_t ** __restrict psrv);
|
Line 43 void mqtt_srv_Fini(mqtt_srv_t ** __restrict psrv);
|
* return: -1 error or 0 ok |
* return: -1 error or 0 ok |
*/ |
*/ |
int mqtt_srv_Dispatch(mqtt_srv_t * __restrict srv, void *arg); |
int mqtt_srv_Dispatch(mqtt_srv_t * __restrict srv, void *arg); |
|
#endif |
|
|
|
/* |
|
* mqtt_KeepAlive() - Keep Alive check routine |
|
* |
|
* @sock = connected socket |
|
* @ka = keep alive timeout |
|
* @tries = tries for receive correct ping response, usually ==1 |
|
* return: -1 error, 0 host is alive, 1 timeout session or 2 broken session |
|
*/ |
|
int mqtt_KeepAlive(int sock, unsigned short ka, unsigned char tries); |
|
|
|
#ifdef API_CLIENT_SIDE |
|
#endif |
|
|
|
|
#endif |
#endif |