version 1.1.1.1.2.1, 2011/11/07 13:34:06
|
version 1.1.1.1.2.2, 2011/11/07 13:58:27
|
Line 86 inline unsigned int mqtt_encodeLen(unsigned int num);
|
Line 86 inline unsigned int mqtt_encodeLen(unsigned int num);
|
/* |
/* |
* mqtt_decodeLen() Decode length from MQTT packet |
* mqtt_decodeLen() Decode length from MQTT packet |
* @len = length |
* @len = length |
|
* @n = sizeof bytes, if !=NULL |
* return: -1 error, >-1 length of message |
* return: -1 error, >-1 length of message |
*/ |
*/ |
inline unsigned int mqtt_decodeLen(unsigned int len); | inline unsigned int mqtt_decodeLen(unsigned int len, char *n); |
| /* |
| * mqtt_sizeLen Return sizeof len field |
| * @len = length |
| * return: -1 error, >-1 sizeof len in bytes |
| */ |
| inline char mqtt_sizeLen(unsigned int len); |
|
|
|
|
#endif |
#endif |