MQTT-C
mqtt_pal.h File Reference

Includes/supports the types/calls required by the MQTT-C client. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MQTT_PAL_HTONS(s)
 host-to-network endian conversion for uint16_t.
#define MQTT_PAL_NTOHS(s)
 network-to-host endian conversion for uint16_t.
#define MQTT_PAL_TIME()
 returns [type: mqtt_pal_time_t] current time in seconds.
#define MQTT_PAL_MUTEX_INIT(mtx_ptr)
 macro that initializes the mutex pointed to by mtx_ptr.
#define MQTT_PAL_MUTEX_LOCK(mtx_ptr)
 macro that locks the mutex pointed to by mtx_ptr.
#define MQTT_PAL_MUTEX_UNLOCK(mtx_ptr)
 macro that unlocks the mutex pointed to by mtx_ptr.

Typedefs

typedef void mqtt_pal_time_t
 return type of MQTT_PAL_TIME()
typedef void mqtt_pal_mutex_t
 type of the argument that is passed to MQTT_PAL_MUTEX_INIT(), MQTT_PAL_MUTEX_LOCK() and MQTT_PAL_MUTEX_UNLOCK().

Functions

ssize_t mqtt_pal_sendall (mqtt_pal_socket_handle fd, const void *buf, size_t len, int flags)
 Sends all the bytes in a buffer.
ssize_t mqtt_pal_recvall (mqtt_pal_socket_handle fd, void *buf, size_t bufsz, int flags)
 Non-blocking receive all the byte available.

Detailed Description

Includes/supports the types/calls required by the MQTT-C client.

Note
This is the only file included in mqtt.h, and mqtt.c. It is therefore responsible for including/supporting all the required types and calls.