• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavformat/

Lines Matching defs:udp_fd

61     int udp_fd;
327 int udp_fd = -1;
338 udp_fd = ff_socket(res->ai_family, SOCK_DGRAM, 0);
339 if (udp_fd != -1) break;
343 if (udp_fd < 0)
351 return udp_fd;
354 if (udp_fd >= 0)
355 closesocket(udp_fd);
412 if (connect(s->udp_fd, (struct sockaddr *) &s->dest_addr,
444 return s->udp_fd;
456 if (ff_socket_nonblock(s->udp_fd, 0) < 0) {
469 len = recv(s->udp_fd, s->tmp+4, sizeof(s->tmp)-4, 0);
532 int port, udp_fd = -1, tmp, bind_ret = -1;
634 udp_fd = udp_socket_create(s, &my_addr, &len, localaddr[0] ? localaddr : s->local_addr);
635 if (udp_fd < 0)
645 if (setsockopt (udp_fd, SOL_SOCKET, SO_REUSEADDR, &(s->reuse_socket), sizeof(s->reuse_socket)) != 0)
651 if (setsockopt (udp_fd, SOL_SOCKET, SO_BROADCAST, &(s->is_broadcast), sizeof(s->is_broadcast)) != 0)
661 bind_ret = bind(udp_fd,(struct sockaddr *)&s->dest_addr, len);
666 if (bind_ret < 0 && bind(udp_fd,(struct sockaddr *)&my_addr, len) < 0) {
672 getsockname(udp_fd, (struct sockaddr *)&my_addr, &len);
678 if (udp_set_multicast_ttl(udp_fd, s->ttl, (struct sockaddr *)&s->dest_addr) < 0)
688 if (udp_set_multicast_sources(udp_fd, (struct sockaddr *)&s->dest_addr, s->dest_addr_len, include_sources, num_include_sources, 1) < 0)
691 if (udp_join_multicast_group(udp_fd, (struct sockaddr *)&s->dest_addr,(struct sockaddr *)&s->local_addr_storage) < 0)
695 if (udp_set_multicast_sources(udp_fd, (struct sockaddr *)&s->dest_addr, s->dest_addr_len, exclude_sources, num_exclude_sources, 0) < 0)
704 if (setsockopt(udp_fd, SOL_SOCKET, SO_SNDBUF, &tmp, sizeof(tmp)) < 0) {
711 if (setsockopt(udp_fd, SOL_SOCKET, SO_RCVBUF, &tmp, sizeof(tmp)) < 0) {
715 if (getsockopt(udp_fd, SOL_SOCKET, SO_RCVBUF, &tmp, &len) < 0) {
724 ff_socket_nonblock(udp_fd, 1);
727 if (connect(udp_fd, (struct sockaddr *) &s->dest_addr, s->dest_addr_len)) {
738 s->udp_fd = udp_fd;
773 if (udp_fd >= 0)
774 closesocket(udp_fd);
833 ret = ff_network_wait_fd(s->udp_fd, 0);
837 ret = recv(s->udp_fd, buf, size, 0);
848 ret = ff_network_wait_fd(s->udp_fd, 1);
854 ret = sendto (s->udp_fd, buf, size, 0,
858 ret = send(s->udp_fd, buf, size, 0);
869 udp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr,(struct sockaddr *)&s->local_addr_storage);
870 closesocket(s->udp_fd);