Lines Matching defs:buf
109 char buf[256];
125 if (av_find_info_tag(buf, sizeof(buf), "listen", p)) {
127 s->listen = strtol(buf, &endptr, 10);
129 if (buf == endptr)
132 if (av_find_info_tag(buf, sizeof(buf), "timeout", p)) {
133 s->rw_timeout = strtol(buf, NULL, 10);
135 if (av_find_info_tag(buf, sizeof(buf), "listen_timeout", p)) {
136 s->listen_timeout = strtol(buf, NULL, 10);
138 if (av_find_info_tag(buf, sizeof(buf), "tcp_nodelay", p)) {
139 s->tcp_nodelay = strtol(buf, NULL, 10);
237 static int tcp_read(URLContext *h, uint8_t *buf, int size)
247 ret = recv(s->fd, buf, size, 0);
253 static int tcp_write(URLContext *h, const uint8_t *buf, int size)
263 ret = send(s->fd, buf, size, MSG_NOSIGNAL);