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

2007-04-12 Thread nahuel9728
Hi everyone. Im developing a interface for a server program and I have some problems.Step by step: - I put the server in listen: fd_dealer2server=socket.. bind listen(fd_dealer2server,MAX_CON) - I create a channel and I add a watch to the the port binded for everytime a data goes

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

2007-04-12 Thread Rick Jones
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:

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

2007-04-12 Thread James Scott Jr
On Thu, 2007-04-12 at 13:36 -0700, nahuel9728 wrote: Hi everyone. Im developing a interface for a server program and I have some problems.Step by step: - I put the server in listen: fd_dealer2server=socket.. bind listen(fd_dealer2server,MAX_CON) - I create a channel and I