Re: How to use socket conditions ?

On Sat, 11 Jul 2015 00:09:54 -0400
Jacques Pelletier <jpelletier ieee org> wrote:

I'm using a glib socket: when a client (glib) is connected to a
server, the client doesn't get the HUP messages when the server
closes its connection.

That's probably because the socket implementation does not provide HUP
on closure of the remote side of the connection (most don't).  You have
to inspect whether the read unblocks with 0 bytes received, indicating
end of file.



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