Searched refs:packetlen (Results 1 – 4 of 4) sorted by relevance
/third_party/toybox/toys/pending/ |
D | tftp.c | 219 int packetlen, retry; in read_ack() local 242 packetlen = mkpkt_err(packet, TFTP_ER_UNKID, TFTP_ES_UNKID); in read_ack() 243 (void) write_server(sd, packet, packetlen, server); in read_ack() 252 packetlen = mkpkt_err(packet, TFTP_ER_ILLEGALOP, TFTP_ES_ILLEGALOP); in read_ack() 253 (void) write_server(sd, packet, packetlen, server); in read_ack() 388 int packetlen, sd, fd, retry = 0, ret, result = -1; in file_put() local 395 packetlen = mkpkt_request(packet, TFTP_OP_WRQ, TT.remote_file, 1); in file_put() 396 ret = write_server(sd, packet, packetlen, &server); in file_put() 397 if (ret != packetlen) goto errout_with_sd; in file_put() 405 packetlen = mkpkt_data(fd, offset, packet, blockno); in file_put() [all …]
|
/third_party/curl/lib/ |
D | mqtt.c | 253 size_t packetlen = 0; in mqtt_connect() local 282 packetlen = payloadlen + 10 + remain_pos + 1; in mqtt_connect() 285 if(packetlen > 268435455) in mqtt_connect() 287 packet = malloc(packetlen); in mqtt_connect() 290 memset(packet, 0, packetlen); in mqtt_connect() 334 result = mqtt_send(data, packet, packetlen); in mqtt_connect() 399 size_t packetlen; in mqtt_subscribe() local 410 packetlen = topiclen + 5; /* packetid + topic (has a two byte length field) in mqtt_subscribe() 412 n = mqtt_encode_len((char *)encodedsize, packetlen); in mqtt_subscribe() 413 packetlen += n + 1; /* add one for the control packet type byte */ in mqtt_subscribe() [all …]
|
/third_party/curl/tests/server/ |
D | mqttd.c | 346 static int encode_length(size_t packetlen, in encode_length() argument 353 encode = packetlen % 0x80; in encode_length() 354 packetlen /= 0x80; in encode_length() 355 if(packetlen) in encode_length() 364 } while(packetlen); in encode_length() 400 ssize_t packetlen; in publish() local 418 packetlen = remaininglength + encodedlen + 1; in publish() 419 packet = malloc(packetlen); in publish() 436 sendamount = packetlen; in publish() 446 if(rc == packetlen) in publish()
|
/third_party/flutter/skia/third_party/externals/sdl/src/audio/ |
D | SDL_audio.c | 1381 const int packetlen = SDL_AUDIOBUFFERQUEUE_PACKETLEN; in open_audio_device() local 1383 const int wantpackets = (wantbytes / packetlen) + ((wantbytes % packetlen) ? packetlen : 0); in open_audio_device()
|