19 #define MSG_HEADER_SIZE 15
20 #define MULTIPART_MSG_HEADER_SIZE 6
22 #define DEFLATE_SYNC_TRAILER_SIZE 4
39 unsigned char version;
49 int twCompressBytes (
char * buf, uint32_t length,
twStream* s,
struct twWs * ws);
52 uint32_t twMessage_GetRequestId();
56 twMessage * twMessage_CreateResponseMsg(
enum msgCodeEnum code, uint32_t
id, uint32_t sessionId, uint32_t endpointId);
57 twMessage * twMessage_CreateBindMsg(
char * name,
char isUnbind);
58 twMessage * twMessage_CreateAuthMsg(
char * claimName,
char * claimValue);
68 void twMessage_Delete(
void * input);
69 int twMessage_Send(
struct twMessage ** msg,
struct twWs * ws);
70 int twMessage_SetBody(
struct twMessage * msg,
void * body);
84 char * characteristicName;
97 char *characteristicName);
98 int twRequestBody_AddHeader(
struct twRequestBody * body,
char * name,
char * value);
116 int twResponseBody_SetReason(
struct twResponseBody * body,
char * reason);
131 int twAuthBody_Delete(
struct twAuthBody * body);
132 int twAuthBody_SetClaim(
struct twAuthBody * body,
char * name,
char * value);
149 int twBindBody_Delete(
struct twBindBody * body);
150 int twBindBody_AddName(
struct twBindBody * body,
char * name);
151 int twBindBody_ToStream(
struct twBindBody * body,
twStream * s,
char * gatewayName,
char * gatewayType);
167 void twMultipartBody_Delete(
void * body);
170 uint64_t expirationTime;
172 uint16_t chunksExpected;
173 uint16_t chunksReceived;
178 void mulitpartMessageStoreEntry_Delete(
void * entry);
184 twList * multipartMessageList;
189 void twMultipartMessageStore_Delete(
void * store);
191 void twMultipartMessageStore_RemoveStaleMessages();
msgType
Enumeration of HTTP message types.
Definition: twDefinitions.h:58
Definition: twMessages.h:104
Websocket client abstraction layer.
Definition: twMessages.h:156
ThingWorx twInfoTable and twDataShape definitions and functions.
ThingWorx C SDK error code definitions.
#define TW_MUTEX
For Linux builds a TW_MUTEX is a pthread_mutex_t.
Definition: twLinux-openssl.h:81
Dynamically allocated byte array. Automatically expands its length as needed.
Definition: twBaseTypes.h:35
Wrappers for OS-specific functionality.
Linked list structure definition.
Definition: twList.h:59
Definition: twMessages.h:139
Definition: twMessages.h:80
entityTypeEnum
Definition: twDefinitions.h:114
msgCodeEnum
Enumeration of HTTP message codes.
Definition: twDefinitions.h:74
characteristicEnum
Definition: twDefinitions.h:147
Default settings for ThingWorx C SDK.
Common definitions for C SDK.
Definition: inftree9.h:24
ThingWorx BaseType definitions and functions.
Definition: twMessages.h:37
Info table base structure.
Definition: twInfoTable.h:418
Definition: twMessages.h:122
Definition: twMessages.h:183
Websocket entity structure definition.
Definition: twWebsocket.h:87
Definition: twMessages.h:169
BaseType
Definition: twDefinitions.h:156