Skip to content

Latest commit

 

History

History
54 lines (42 loc) · 1.65 KB

nng_mqtt_msg_decode.3.adoc

File metadata and controls

54 lines (42 loc) · 1.65 KB

nng_mqtt_msg_decode(3)

NAME

nng_mqtt_msg_decode - decode a mqtt bytes stream from nng_msg_body and nng_msg_header to proto_data

SYNOPSIS

#include <nng/nng.h>

int nng_mqtt_msg_decode(nng_msg **msgp);

DESCRIPTION

The nng_mqtt_msg_decode() function decode body and header data to proto_data (mqtt message structure), then functions nng_mqtt_msg_get_xxx_xxx() can be allowed to get mqtt message infomations.

RETURN VALUES

This function returns 0 on success, and non-zero otherwise.

ERRORS