Displaying 1 result from an estimated 1 matches for "udp_sock".
2004 Sep 10
0
http streaming in the xmms plugin
...le descriptor of the socket, or -1 on error */
+ static int http_connect (gchar *url_, gboolean head, guint64 offset)
+ {
+ gchar line[1024], *user, *pass, *host, *filename,
+ *status, *url, *temp, *file;
+ gchar *chost;
+ gint cnt, error, err_len, port, cport;
+ gboolean redirect;
+ int udp_sock = 0;
+ fd_set set;
+ struct hostent *hp;
+ struct sockaddr_in address;
+ struct timeval tv;
+
+ url = g_strdup (url_);
+
+ do
+ {
+ redirect=FALSE;
+
+ g_strstrip(url);
+
+ parse_url(url, &user, &pass, &host, &port, &filename);
+
+ if ((!filename || !*filena...