static void do_udp_write(void *arg, void *buf, int size) {

    URLContext *h = arg;

    UDPContext *s = h->priv_data;



    int ret;



    if (!(h->flags & AVIO_FLAG_NONBLOCK)) {

        ret = ff_network_wait_fd(s->udp_fd, 1);

        if (ret < 0) {

            s->circular_buffer_error = ret;

            return;

        }

    }



    if (!s->is_connected) {

        ret = sendto (s->udp_fd, buf, size, 0,

                      (struct sockaddr *) &s->dest_addr,

                      s->dest_addr_len);

    } else

        ret = send(s->udp_fd, buf, size, 0);



    s->circular_buffer_error=ret;

}

static void do_udp_write(void *arg, void *buf, int size) {

    URLContext *h = arg;

    UDPContext *s = h->priv_data;



    int ret;



    if (!(h->flags & AVIO_FLAG_NONBLOCK)) {

        ret = ff_network_wait_fd(s->udp_fd, 1);

        if (ret < 0) {

            s->circular_buffer_error = ret;

            return;

        }

    }



    if (!s->is_connected) {

        ret = sendto (s->udp_fd, buf, size, 0,

                      (struct sockaddr *) &s->dest_addr,

                      s->dest_addr_len);

    } else

        ret = send(s->udp_fd, buf, size, 0);



    s->circular_buffer_error=ret;

}

static void do_udp_write(void *arg, void *buf, int size) {     URLContext *h = arg;     UDPContext *s = h->priv_data;     int ret;     if (!(h->flags & AVIO_FLAG_NONBLOCK)) {         ret = ff_network_wait_fd(s->udp_fd, 1);         if (ret < 0) {             s->circular_buffer_error = ret;     if (!s->is_connected) {         ret = sendto (s->udp_fd, buf, size, 0,                       (struct sockaddr *) &s->dest_addr,                       s->dest_addr_len);     } else         ret = send(s->udp_fd, buf, size, 0);     s->circular_buffer_error=ret;
static void FUNC_0(void *VAR_0, void *VAR_1, int VAR_2) {

    URLContext *h = VAR_0;

    UDPContext *s = h->priv_data;



    int VAR_3;



    if (!(h->flags & AVIO_FLAG_NONBLOCK)) {

        VAR_3 = ff_network_wait_fd(s->udp_fd, 1);

        if (VAR_3 < 0) {

            s->circular_buffer_error = VAR_3;

            return;

        }

    }



    if (!s->is_connected) {

        VAR_3 = sendto (s->udp_fd, VAR_1, VAR_2, 0,

                      (struct sockaddr *) &s->dest_addr,

                      s->dest_addr_len);

    } else

        VAR_3 = send(s->udp_fd, VAR_1, VAR_2, 0);



    s->circular_buffer_error=VAR_3;

}

static void FUNC_0(void *VAR_0, void *VAR_1, int VAR_2) { URLContext *h = VAR_0; UDPContext *s = h->priv_data; int VAR_3; if (!(h->flags & AVIO_FLAG_NONBLOCK)) { VAR_3 = ff_network_wait_fd(s->udp_fd, 1); if (VAR_3 < 0) { s->circular_buffer_error = VAR_3; return; } } if (!s->is_connected) { VAR_3 = sendto (s->udp_fd, VAR_1, VAR_2, 0,
(struct sockaddr *) &s->dest_addr,
s->dest_addr_len); } else VAR_3 = send(s->udp_fd, VAR_1, VAR_2, 0); s->circular_buffer_error=VAR_3; }