/**
- * @file upnp.c UPnP Implementation
+ * @file upnp/upnp.c UPnP Implementation
* @ingroup core
*
* gaim
char *full_url;
char *buf;
unsigned int buf_len;
- int sock;
+ struct GNUNET_NETWORK_Handle *sock;
} UPnPDiscoveryData;
static GaimUPnPControlInfo control_info = {
}
int
-gaim_upnp_discover (struct GNUNET_CONFIGURATION_Handle *cfg, int sock)
+gaim_upnp_discover (struct GNUNET_CONFIGURATION_Handle *cfg, struct GNUNET_NETWORK_Handle *sock)
{
char *proxy;
socklen_t avail;
/* try to read response */
do
{
- buf_len = recv (dd.sock, buf, sizeof (buf) - 1, 0);
+ buf_len = GNUNET_IO_recv (dd.sock, buf, sizeof (buf) - 1, 0);
if (buf_len > 0)
{
buf[buf_len] = '\0';