Searched refs:packetlen (Results 1 – 2 of 2) sorted by relevance
258 size_t packetlen = 0; in mqtt_connect() local287 packetlen = payloadlen + 10 + remain_pos + 1; in mqtt_connect()290 if(packetlen > 268435455) in mqtt_connect()292 packet = malloc(packetlen); in mqtt_connect()295 memset(packet, 0, packetlen); in mqtt_connect()339 result = mqtt_send(data, packet, packetlen); in mqtt_connect()442 size_t packetlen; in mqtt_subscribe() local455 n = mqtt_encode_len((char *)encodedsize, packetlen); in mqtt_subscribe()456 packetlen += n + 1; /* add one for the control packet type byte */ in mqtt_subscribe()458 packet = malloc(packetlen); in mqtt_subscribe()[all …]
342 static size_t encode_length(size_t packetlen, in encode_length() argument349 encode = packetlen % 0x80; in encode_length()350 packetlen /= 0x80; in encode_length()351 if(packetlen) in encode_length()360 } while(packetlen); in encode_length()396 size_t packetlen; in publish() local414 packetlen = remaininglength + encodedlen + 1; in publish()415 packet = malloc(packetlen); in publish()432 sendamount = packetlen; in publish()443 if((size_t)rc == packetlen) in publish()
Completed in 7 milliseconds