Home
last modified time | relevance | path

Searched refs:packetlen (Results 1 – 2 of 2) sorted by relevance

/curl/lib/
H A Dmqtt.c258 size_t packetlen = 0; in mqtt_connect() local
287 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() local
455 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 …]
/curl/tests/server/
H A Dmqttd.c344 static size_t encode_length(size_t packetlen, in encode_length() argument
351 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() local
416 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