Re: Inadequate documentation: sockets

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Tue Mar 06 2001 - 13:34:08 EST


> =46inally I'm left with my original problem: how am I supposed to
> detect a close or a shutdown from the peer? Once again, I thank in
> advance anyone who will lend me a hand by explaining this to me or
> by addressing me to more adequate documentation.

By an EOF on read or getting SIGPIPE/EPIPE on a write. You might want to pick
up a book on the subject of network programming. There are some very nice ones
around
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 07 2001 - 21:00:20 EST