client-c
0.8.1
|
#include "kaatcp_common.h"
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) |
Copyright 2014-2016 CyberVision, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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 | ) |