| 
    client-c
    0.7.0
    
   | 
 
#include "kaatcp_common.h"
 Include dependency graph for kaatcp_parser.h:
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | kaatcp_parser_handlers_t | 
| struct | kaatcp_parser_t | 
Typedefs | |
| typedef void(* | on_connack_message_fn )(void *context, kaatcp_connack_t message) | 
| typedef void(* | on_disconnect_message_fn )(void *context, kaatcp_disconnect_t message) | 
| typedef void(* | on_kaasync_message_fn )(void *context, kaatcp_kaasync_t *message) | 
| typedef void(* | on_pingresp_message_fn )(void *context) | 
Enumerations | |
| enum | kaatcp_parser_state_t { KAATCP_PARSER_STATE_NONE = 0x00, KAATCP_PARSER_STATE_PROCESSING_LENGTH = 0x01, KAATCP_PARSER_STATE_PROCESSING_PAYLOAD = 0x02 } | 
Functions | |
| kaatcp_error_t | kaatcp_parser_init (kaatcp_parser_t *parser, const kaatcp_parser_handlers_t *handlers) | 
| kaatcp_error_t | kaatcp_parser_reset (kaatcp_parser_t *parser) | 
| kaatcp_error_t | kaatcp_parser_process_buffer (kaatcp_parser_t *parser, const char *buf, size_t buf_size) | 
| void | kaatcp_parser_kaasync_destroy (kaatcp_kaasync_t *message) | 
| typedef void(* on_connack_message_fn)(void *context, kaatcp_connack_t message) | 
Definition at line 27 of file kaatcp_parser.h.
| typedef void(* on_disconnect_message_fn)(void *context, kaatcp_disconnect_t message) | 
Definition at line 28 of file kaatcp_parser.h.
| typedef void(* on_kaasync_message_fn)(void *context, kaatcp_kaasync_t *message) | 
Definition at line 29 of file kaatcp_parser.h.
| typedef void(* on_pingresp_message_fn)(void *context) | 
Definition at line 30 of file kaatcp_parser.h.
| Enumerator | |
|---|---|
| KAATCP_PARSER_STATE_NONE | |
| KAATCP_PARSER_STATE_PROCESSING_LENGTH | |
| KAATCP_PARSER_STATE_PROCESSING_PAYLOAD | |
Definition at line 34 of file kaatcp_parser.h.
| kaatcp_error_t kaatcp_parser_init | ( | kaatcp_parser_t * | parser, | 
| const kaatcp_parser_handlers_t * | handlers | ||
| ) | 
| void kaatcp_parser_kaasync_destroy | ( | kaatcp_kaasync_t * | message | ) | 
| kaatcp_error_t kaatcp_parser_process_buffer | ( | kaatcp_parser_t * | parser, | 
| const char * | buf, | ||
| size_t | buf_size | ||
| ) | 
| kaatcp_error_t kaatcp_parser_reset | ( | kaatcp_parser_t * | parser | ) |