Kaa client C SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
kaatcp_request.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2016 CyberVision, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef KAATCP_REQUEST_H_
18 #define KAATCP_REQUEST_H_
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #include "kaatcp_common.h"
25 
26 
27 
28 kaatcp_error_t kaatcp_fill_connect_message(uint16_t keepalive, uint32_t next_protocol_id
29  , char *sync_request, size_t sync_request_size
30  , char *session_key, size_t session_key_size
31  , char *signature, size_t signature_size
32  , kaatcp_connect_t *message);
33 
35  , char *buf
36  , size_t *buf_size);
37 
39  , kaatcp_disconnect_t *message);
40 
42  , char *buf
43  , size_t *buf_size);
44 
45 kaatcp_error_t kaatcp_fill_kaasync_message(char *sync_request, size_t sync_request_size
46  , uint16_t message_id, uint8_t zipped, uint8_t encrypted
47  , kaatcp_kaasync_t *message);
48 
50  , char *buf
51  , size_t *buf_size);
52 
53 kaatcp_error_t kaatcp_get_request_ping(char *buf, size_t *buf_size);
54 
56 
57 #ifdef __cplusplus
58 } /* extern "C" */
59 #endif
60 #endif /* KAATCP_REQUEST_H_ */
kaatcp_error_t kaatcp_get_request_size(const kaatcp_connect_t *message, kaatcp_message_type_t type, size_t *size)
kaatcp_error_t kaatcp_fill_disconnect_message(kaatcp_disconnect_reason_t reason, kaatcp_disconnect_t *message)
Definition: kaatcp_common.h:124
kaatcp_error_t kaatcp_get_request_kaasync(const kaatcp_kaasync_t *message, char *buf, size_t *buf_size)
kaatcp_error_t
Definition: kaatcp_common.h:57
Definition: kaatcp_common.h:76
Definition: kaatcp_common.h:137
kaatcp_error_t kaatcp_get_request_disconnect(const kaatcp_disconnect_t *message, char *buf, size_t *buf_size)
kaatcp_error_t kaatcp_get_request_connect(const kaatcp_connect_t *message, char *buf, size_t *buf_size)
kaatcp_message_type_t
Definition: kaatcp_common.h:66
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_disconnect_reason_t
Definition: kaatcp_common.h:117
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_ping(char *buf, size_t *buf_size)