Includes/supports the types/calls required by the MQTT-C client.
More...
Go to the source code of this file.
|
|
#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.
|
|
| 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.
|
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.