Re: how to read data with g_io_read_channel throwed it through a normal socket



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]