Lines Matching defs:buf
188 char buf[256];
204 if (av_find_info_tag(buf, sizeof(buf), "listen", p))
206 if (av_find_info_tag(buf, sizeof(buf), "max_streams", p))
207 s->max_streams = strtol(buf, NULL, 10);
302 static int sctp_read(URLContext *h, uint8_t *buf, int size)
316 ret = ff_sctp_recvmsg(s->fd, buf + 2, size - 2, NULL, 0, &info, 0);
317 AV_WB16(buf, info.sinfo_stream);
320 ret = recv(s->fd, buf, size, 0);
325 static int sctp_write(URLContext *h, const uint8_t *buf, int size)
339 info.sinfo_stream = AV_RB16(buf);
344 ret = ff_sctp_send(s->fd, buf + 2, size - 2, &info, MSG_EOR);
346 ret = send(s->fd, buf, size, MSG_NOSIGNAL);