Lines Matching defs:buf
430 char hostname[256], buf[10];
444 if (av_find_info_tag(buf, sizeof(buf), "connect", p)) {
446 s->is_connected = strtol(buf, NULL, 10);
652 char buf[256];
675 if (av_find_info_tag(buf, sizeof(buf), "reuse", p)) {
677 s->reuse_socket = strtol(buf, &endptr, 10);
679 if (buf == endptr)
682 if (av_find_info_tag(buf, sizeof(buf), "overrun_nonfatal", p)) {
684 s->overrun_nonfatal = strtol(buf, &endptr, 10);
686 if (buf == endptr)
693 if (av_find_info_tag(buf, sizeof(buf), "ttl", p)) {
694 s->ttl = strtol(buf, NULL, 10);
701 if (av_find_info_tag(buf, sizeof(buf), "udplite_coverage", p)) {
702 s->udplite_coverage = strtol(buf, NULL, 10);
704 if (av_find_info_tag(buf, sizeof(buf), "localport", p)) {
705 s->local_port = strtol(buf, NULL, 10);
707 if (av_find_info_tag(buf, sizeof(buf), "pkt_size", p)) {
708 s->pkt_size = strtol(buf, NULL, 10);
710 if (av_find_info_tag(buf, sizeof(buf), "buffer_size", p)) {
711 s->buffer_size = strtol(buf, NULL, 10);
713 if (av_find_info_tag(buf, sizeof(buf), "connect", p)) {
714 s->is_connected = strtol(buf, NULL, 10);
716 if (av_find_info_tag(buf, sizeof(buf), "dscp", p)) {
717 dscp = strtol(buf, NULL, 10);
719 if (av_find_info_tag(buf, sizeof(buf), "fifo_size", p)) {
720 s->circular_buffer_size = strtol(buf, NULL, 10);
726 if (av_find_info_tag(buf, sizeof(buf), "bitrate", p)) {
727 s->bitrate = strtoll(buf, NULL, 10);
733 if (av_find_info_tag(buf, sizeof(buf), "burst_bits", p)) {
734 s->burst_bits = strtoll(buf, NULL, 10);
736 if (av_find_info_tag(buf, sizeof(buf), "localaddr", p)) {
738 s->localaddr = av_strdup(buf);
740 if (av_find_info_tag(buf, sizeof(buf), "sources", p)) {
741 if ((ret = ff_ip_parse_sources(h, buf, &s->filters)) < 0)
744 if (av_find_info_tag(buf, sizeof(buf), "block", p)) {
745 if ((ret = ff_ip_parse_blocks(h, buf, &s->filters)) < 0)
748 if (!is_output && av_find_info_tag(buf, sizeof(buf), "timeout", p))
749 s->timeout = strtol(buf, NULL, 10);
750 if (is_output && av_find_info_tag(buf, sizeof(buf), "broadcast", p))
751 s->is_broadcast = strtol(buf, NULL, 10);
883 /* limit the tx buf size to limit latency */
984 static int udp_read(URLContext *h, uint8_t *buf, int size)
1007 av_fifo_read(s->fifo, buf, avail);
1040 ret = recvfrom(s->udp_fd, buf, size, 0, (struct sockaddr *)&addr, &addr_len);
1048 static int udp_write(URLContext *h, const uint8_t *buf, int size)
1076 av_fifo_write(s->fifo, buf, size); /* the data */
1089 ret = sendto (s->udp_fd, buf, size, 0,
1093 ret = send(s->udp_fd, buf, size, 0);