search for: valptr

Displaying 1 result from an estimated 1 matches for "valptr".

Did you mean: val_ptr
2004 Sep 10
0
http streaming in the xmms plugin
...close(*sock); + return -1; + } + + #ifdef DEBUG_UDP + fprintf (stderr,"Listening on local %s:%d\n", inet_ntoa(sin.sin_addr), g_ntohs(sin.sin_port)); + #endif + + return g_ntohs(sin.sin_port); + } + + static int udp_check_for_data(int sock) + { + char buf[1025], **lines; + char *valptr; + gchar *title; + gint len, i; + struct sockaddr_in from; + socklen_t fromlen; + + fromlen = sizeof(struct sockaddr_in); + + if ((len = recvfrom(sock, buf, 1024, 0, (struct sockaddr *)&from, &fromlen)) < 0) + { + if (errno != EAGAIN) + { + g_log(NULL, G_LOG_LEVEL_CRITIC...