int udp_set_remote_url(URLContext *h, const char *uri)

{

    UDPContext *s = h->priv_data;

    char hostname[256];

    int port;

    

    url_split(NULL, 0, hostname, sizeof(hostname), &port, NULL, 0, uri);



    /* set the destination address */

    if (resolve_host(&s->dest_addr.sin_addr, hostname) < 0)

        return AVERROR_IO;

    s->dest_addr.sin_family = AF_INET;

    s->dest_addr.sin_port = htons(port);

    return 0;

}

int udp_set_remote_url(URLContext *h, const char *uri)

{

    UDPContext *s = h->priv_data;

    char hostname[256];

    int port;

    

    url_split(NULL, 0, hostname, sizeof(hostname), &port, NULL, 0, uri);



    

    if (resolve_host(&s->dest_addr.sin_addr, hostname) < 0)

        return AVERROR_IO;

    s->dest_addr.sin_family = AF_INET;

    s->dest_addr.sin_port = htons(port);

    return 0;

}

int FUNC_0(URLContext *VAR_0, const char *VAR_1)

{

    UDPContext *s = VAR_0->priv_data;

    char VAR_2[256];

    int VAR_3;

    

    url_split(NULL, 0, VAR_2, sizeof(VAR_2), &VAR_3, NULL, 0, VAR_1);



    

    if (resolve_host(&s->dest_addr.sin_addr, VAR_2) < 0)

        return AVERROR_IO;

    s->dest_addr.sin_family = AF_INET;

    s->dest_addr.sin_port = htons(VAR_3);

    return 0;

}

int FUNC_0(URLContext *VAR_0, const char *VAR_1)
{ UDPContext *s = VAR_0->priv_data; char VAR_2[256]; int VAR_3; url_split(NULL, 0, VAR_2, sizeof(VAR_2), &VAR_3, NULL, 0, VAR_1); if (resolve_host(&s->dest_addr.sin_addr, VAR_2) < 0)
return AVERROR_IO; s->dest_addr.sin_family = AF_INET; s->dest_addr.sin_port = htons(VAR_3); return 0; }