21 #if !defined(MQTTPROTOCOLCLIENT_H) 22 #define MQTTPROTOCOLCLIENT_H 31 #define MAX_MSG_ID 65535 32 #define MAX_CLIENTID_LEN 65535 55 char*
MQTTStrncpy(
char *dest,
const char* src,
size_t num);
char * MQTTStrdup(const char *src)
int messageIDCompare(void *a, void *b)
void MQTTProtocol_removePublication(Publications *p)
void MQTTProtocol_emptyMessageList(List *msgList)
int MQTTProtocol_handlePubrels(void *pack, int sock)
int MQTTProtocol_assignMsgId(Clients *client)
void MQTTProtocol_closeSession(Clients *c, int sendwill)
Messages * MQTTProtocol_createMessage(Publish *publish, Messages **mm, int qos, int retained, int allocatePayload)
void Protocol_processPublication(Publish *publish, Clients *client, int allocatePayload)
void MQTTProtocol_freeMessageList(List *msgList)
int MQTTProtocol_handlePubrecs(void *pack, int sock)
int MQTTProtocol_startPublish(Clients *pubclient, Publish *publish, int qos, int retained, Messages **m)
void MQTTProtocol_freeClient(Clients *client)
Publications * MQTTProtocol_storePublication(Publish *publish, int *len)
char * MQTTStrncpy(char *dest, const char *src, size_t num)
int MQTTProtocol_handlePubacks(void *pack, int sock)
void MQTTProtocol_keepalive(START_TIME_TYPE)
int MQTTProtocol_handlePubcomps(void *pack, int sock)
int MQTTProtocol_handlePublishes(void *pack, int sock)
void MQTTProtocol_retry(START_TIME_TYPE, int, int)