Kaa client C SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Typedefs
sock.h File Reference
#include <sys/socket.h>
#include <sys/select.h>
#include <arpa/inet.h>
#include "platform-impl/common/kaa_htonll.h"

Go to the source code of this file.

Macros

#define KAA_HTONS(hostshort)   htons((hostshort))
 
#define KAA_HTONL(hostlong)   htonl((hostlong))
 
#define KAA_HTONLL(hostlonglong)   kaa_htonll((hostlonglong))
 
#define KAA_NTOHS(netshort)   ntohs((netshort))
 
#define KAA_NTOHL(netlong)   ntohl((netlong))
 
#define KAA_NTOHLL(netlonglong)   kaa_ntohll((netlonglong))
 

Typedefs

typedef int kaa_fd_t
 
typedef struct sockaddr kaa_sockaddr_t
 
typedef struct sockaddr_storage kaa_sockaddr_storage_t
 
typedef socklen_t kaa_socklen_t
 

Macro Definition Documentation

#define KAA_HTONL (   hostlong)    htonl((hostlong))
#define KAA_HTONLL (   hostlonglong)    kaa_htonll((hostlonglong))
#define KAA_HTONS (   hostshort)    htons((hostshort))
#define KAA_NTOHL (   netlong)    ntohl((netlong))
#define KAA_NTOHLL (   netlonglong)    kaa_ntohll((netlonglong))
#define KAA_NTOHS (   netshort)    ntohs((netshort))

Typedef Documentation

typedef int kaa_fd_t
typedef struct sockaddr kaa_sockaddr_t
typedef socklen_t kaa_socklen_t