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 …]
344 static size_t encode_length(size_t packetlen, in encode_length() argument351 encode = packetlen % 0x80; in encode_length()352 packetlen /= 0x80; in encode_length()353 if(packetlen) in encode_length()362 } while(packetlen); in encode_length()398 size_t packetlen; in publish() local416 packetlen = remaininglength + encodedlen + 1; in publish()417 packet = malloc(packetlen); in publish()434 sendamount = packetlen; in publish()445 if((size_t)rc == packetlen) in publish()
Completed in 8 milliseconds