Re: how to read data with g_io_read_channel throwed it through a	normal	socket
- From: Rick Jones <rick jones2 hp com>
- To: nahuel9728 <nahuelsgk hotmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: how to read data with g_io_read_channel throwed it through a	normal	socket
- Date: Thu, 12 Apr 2007 14:01:32 -0700
I suspect you need an accept() call in there somewhere on the server 
side.  When the listen socket becomes readable, it is time to call 
accept() and then possibly create another channel with the resulting 
socket, etc.
At least that is the sort of thing I do in netperf4:
http://www.netperf.org/svn/netperf4/trunk for the stuff done in netserver
and if one is adventuresome, a work-in-progress to get the netperf side 
properly event-driven:
http://www.netperf.org/svn/netperf4/branches/gobject_migration
hth,
rick jones
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]