[gnet-dev] gnet_tcp_socket_new_async_direct() on win32



Hi,

just wanted to forward a minor patch someone sent me to make gnet work on 
win32. I don't know if and why it would be needed, or whether it is even 
correct, but maybe you do ;-)

Cheers
-Tim
diff -u ed2k_gui/gnet/tcp.c ed2k_gui-haze/gnet/tcp.c
--- ed2k_gui/gnet/tcp.c	2004-01-08 19:04:08.000000000 +0100
+++ ed2k_gui-haze/gnet/tcp.c	2004-01-15 13:46:56.000000000 +0100
@@ -600,7 +600,7 @@
 
   state->connect_watch = 
     g_io_add_watch(gnet_private_io_channel_new(s->sockfd),
-		   G_IO_IN | G_IO_OUT | G_IO_ERR,
+		   GNET_ANY_IO_CONDITION,
 		   gnet_tcp_socket_new_async_cb, 
 		   state);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]