Re: How to determine EOF after g_io_channel_read_to_end?

2007-05-09 Thread Hu Zheng
I get it. G_IO_STATUS_NORMAL just means EOF, or it will return G_IO_STATUS_AGAIN. Thanks :) 在 2007-05-09三的 15:06 +0800,Hu Zheng写道: > I want to implement the http client by iochannel, just send the request, > then save all the data to a buffer util the connection is closed. > Because the

How to determine EOF after g_io_channel_read_to_end?

2007-05-08 Thread Hu Zheng
I want to implement the http client by iochannel, just send the request, then save all the data to a buffer util the connection is closed. Because the data may be binary, so I think it is not good to use g_io_channel_read_line, I think g_io_channel_read_to_end should be most suitable, but I can't d