g_io_channel_unref(client_channel);
- server_data->client_list = g_list_append(server_data->client_list, client_data);
+ server_data->client_list = g_list_append(server_data->client_list,
+ client_data);
return !driver->single_connection;
}
timeout.tv_sec = 8;
timeout.tv_usec = 0;
- if (setsockopt (fd, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout,
+ if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout,
sizeof(timeout)) < 0)
near_error("Could not set the receive timeout\n");
- if (setsockopt (fd, SOL_SOCKET, SO_SNDTIMEO, (char *)&timeout,
+ if (setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, (char *)&timeout,
sizeof(timeout)) < 0)
near_error("Could not set the send timeout\n");
timeout.tv_sec = 8;
timeout.tv_usec = 0;
- if (setsockopt (fd, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout,
+ if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout,
sizeof(timeout)) < 0)
near_error("Could not set the receive timeout\n");
- if (setsockopt (fd, SOL_SOCKET, SO_SNDTIMEO, (char *)&timeout,
+ if (setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, (char *)&timeout,
sizeof(timeout)) < 0)
near_error("Could not set the send timeout\n");
.push = p2p_push,
};
-
int near_p2p_register(struct near_p2p_driver *driver)
{
struct near_p2p_driver *tmp_driver;