Kaa client C SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
kaatcp_request.h File Reference
#include "kaatcp_common.h"

Go to the source code of this file.

Functions

kaatcp_error_t kaatcp_fill_connect_message (uint16_t keepalive, uint32_t next_protocol_id, char *sync_request, size_t sync_request_size, char *session_key, size_t session_key_size, char *signature, size_t signature_size, kaatcp_connect_t *message)
 
kaatcp_error_t kaatcp_get_request_connect (const kaatcp_connect_t *message, char *buf, size_t *buf_size)
 
kaatcp_error_t kaatcp_fill_disconnect_message (kaatcp_disconnect_reason_t reason, kaatcp_disconnect_t *message)
 
kaatcp_error_t kaatcp_get_request_disconnect (const kaatcp_disconnect_t *message, char *buf, size_t *buf_size)
 
kaatcp_error_t kaatcp_fill_kaasync_message (char *sync_request, size_t sync_request_size, uint16_t message_id, uint8_t zipped, uint8_t encrypted, kaatcp_kaasync_t *message)
 
kaatcp_error_t kaatcp_get_request_kaasync (const kaatcp_kaasync_t *message, char *buf, size_t *buf_size)
 
kaatcp_error_t kaatcp_get_request_ping (char *buf, size_t *buf_size)
 
kaatcp_error_t kaatcp_get_request_size (const kaatcp_connect_t *message, kaatcp_message_type_t type, size_t *size)
 

Function Documentation

kaatcp_error_t kaatcp_fill_connect_message ( uint16_t  keepalive,
uint32_t  next_protocol_id,
char *  sync_request,
size_t  sync_request_size,
char *  session_key,
size_t  session_key_size,
char *  signature,
size_t  signature_size,
kaatcp_connect_t message 
)
kaatcp_error_t kaatcp_fill_disconnect_message ( kaatcp_disconnect_reason_t  reason,
kaatcp_disconnect_t message 
)
kaatcp_error_t kaatcp_fill_kaasync_message ( char *  sync_request,
size_t  sync_request_size,
uint16_t  message_id,
uint8_t  zipped,
uint8_t  encrypted,
kaatcp_kaasync_t message 
)
kaatcp_error_t kaatcp_get_request_connect ( const kaatcp_connect_t message,
char *  buf,
size_t *  buf_size 
)
kaatcp_error_t kaatcp_get_request_disconnect ( const kaatcp_disconnect_t message,
char *  buf,
size_t *  buf_size 
)
kaatcp_error_t kaatcp_get_request_kaasync ( const kaatcp_kaasync_t message,
char *  buf,
size_t *  buf_size 
)
kaatcp_error_t kaatcp_get_request_ping ( char *  buf,
size_t *  buf_size 
)
kaatcp_error_t kaatcp_get_request_size ( const kaatcp_connect_t message,
kaatcp_message_type_t  type,
size_t *  size 
)