ThingWorx C SDK
|
Wrappers for Linux-specific functionality using AxTLS. More...
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <dirent.h>
#include <stdio.h>
Go to the source code of this file.
Macros | |
TLS Library | |
#define | TW_TLS_INCLUDE "twAxTls.h" |
Define which pluggable TLS library is used. More... | |
Logging | |
#define | TW_LOGGER_BUF_SIZE 4096 |
The maximum size of the log buffer. | |
#define | TW_LOG(level, fmt, ...) twLog(level, fmt, ##__VA_ARGS__) |
#define | TW_LOG_HEX(msg, preamble, length) twLogHexString(msg, preamble, length) |
#define | TW_LOG_MSG(msg, preamble) twLogMessage(msg, preamble) |
Sockets | |
#define | IPV4 AF_INET |
#define | IPV6 AF_INET6 |
#define | TW_SOCKET_TYPE int |
#define | TW_ADDR_INFO struct addrinfo |
#define | TW_HINTS PF_UNSPEC |
Tasks | |
#define | TICKS_PER_MSEC 1 |
Memory | |
#define | TW_MALLOC(a) malloc(a) |
#define | TW_CALLOC(a, b) calloc(a,b) |
#define | TW_REALLOC(a, b) realloc(a, b) |
#define | TW_FREE(a) free(a) |
File Transfer | |
#define | TW_FOPEN(a, b) fopen(a,b) |
#define | TW_FCLOSE(a) fclose(a) |
#define | TW_FREAD(a, b, c, d) fread(a,b,c,d) |
#define | TW_FWRITE(a, b, c, d) fwrite(a,b,c,d) |
#define | TW_FSEEK(a, b, c) fseeko(a,b,c) |
#define | TW_FERROR(a) ferror(a) |
#define | TW_FTELL(a) ftell(a) |
#define | TW_FILE_HANDLE FILE* |
#define | TW_FILE_DELIM '/' |
#define | TW_FILE_DELIM_STR "/" |
#define | TW_FILE_CASE_SENSITVE TRUE |
#define | TW_DIR DIR * |
#define | ERROR_NO_MORE_FILES 0 |
Threads | |
#define | TW_THREAD_ID pthread_t |
Proxies | |
#define | ENABLE_HTTP_PROXY_SUPPORT |
#define | USE_NTLM_PROXY |
#define | TW_MUTEX pthread_mutex_t * |
For Linux builds a TW_MUTEX is a pthread_mutex_t. | |
typedef uint64_t | DATETIME |
Date/time type definition. | |
Misc | |
#define | INLINE |
char | getch () |
Wrappers for Linux-specific functionality using AxTLS.
#define TW_TLS_INCLUDE "twAxTls.h" |
Define which pluggable TLS library is used.