-#else
-
-static int udp_set_url(struct sockaddr_in *addr, const char *hostname, int port)
-{
- /* set the destination address */
- if (resolve_host(&addr->sin_addr, hostname) < 0)
- return AVERROR(EIO);
- addr->sin_family = AF_INET;
- addr->sin_port = htons(port);
-
- return sizeof(struct sockaddr_in);
-}
-
-static int is_multicast_address(struct sockaddr_in *addr)
-{
- return IN_MULTICAST(ntohl(addr->sin_addr.s_addr));
-}
-
-static int udp_socket_create(UDPContext *s, struct sockaddr_in *addr, int *addr_len)
-{
- int fd;
-
- fd = socket(AF_INET, SOCK_DGRAM, 0);
- if (fd < 0)
- return -1;
-
- addr->sin_family = AF_INET;
- addr->sin_addr.s_addr = htonl (INADDR_ANY);
- addr->sin_port = htons(s->local_port);
- *addr_len = sizeof(struct sockaddr_in);
-
- return fd;
-}
-
-static int udp_port(struct sockaddr_in *addr, int len)
-{
- return ntohs(addr->sin_port);
-}
-#endif /* CONFIG_IPV6 */
-