Kaa client C SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
econais_ec19d_sock.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 /*
18 econais_ec19d_sock.h
19  Created on: Jan 15, 2015
20  Author: Andriy Panasenko <apanasenko@cybervisiontech.com>
21 */
22 
23 #ifndef ECONAIS_EC19D_SOCK_H_
24 #define ECONAIS_EC19D_SOCK_H_
25 
26 #include <sys/types.h>
27 #include <sndc_sock_api.h>
28 
29 typedef int kaa_fd_t;
30 
31 typedef struct sndc_sockaddr kaa_sockaddr_t;
32 typedef struct sndc_sockaddr_in kaa_sockaddr_storage_t;
33 typedef sndc_socklen_t kaa_socklen_t;
34 
35 
36 #define KAA_HTONS(hostshort) sndc_htons((hostshort))
37 #define KAA_HTONL(hostlong) sndc_htonl((hostlong))
38 #define KAA_HTONLL(hostlonglong) kaa_htonll((hostlonglong))
39 
40 #define KAA_NTOHS(netshort) sndc_ntohs((netshort))
41 #define KAA_NTOHL(netlong) sndc_ntohl((netlong))
42 #define KAA_NTOHLL(netlonglong) kaa_ntohll((netlonglong))
43 
44 #endif /* ECONAIS_EC19D_SOCK_H_ */
struct sockaddr kaa_sockaddr_t
Definition: sock.h:76
int kaa_fd_t
Definition: econais_ec19d_sock.h:29
sndc_socklen_t kaa_socklen_t
Definition: econais_ec19d_sock.h:33
Definition: sock.h:67