Re: Sockets programming question

2013-01-29 Thread Adrian Chadd
On 29 January 2013 09:46, Ian Lepore wrote: > You can't use EOF on a read() to determine client life when the nature > of the client/server relationship is that clients are allowed to > shutdown(fd, SHUT_WR) as soon as they connect because they expect to > receive but never send any data. > > On

Re: Sockets programming question

2013-01-29 Thread Ian Lepore
On Mon, 2013-01-28 at 18:02 +0200, Konstantin Belousov wrote: > On Mon, Jan 28, 2013 at 08:11:47AM -0700, Ian Lepore wrote: > > I've got a question that isn't exactly freebsd-specific, but > > implemenation-specific behavior may be involved. > > > > I've got a server process that accepts connectio

Re: Sockets programming question

2013-01-28 Thread Konstantin Belousov
On Mon, Jan 28, 2013 at 08:11:47AM -0700, Ian Lepore wrote: > I've got a question that isn't exactly freebsd-specific, but > implemenation-specific behavior may be involved. > > I've got a server process that accepts connections from clients on a > PF_LOCAL stream socket. Multiple clients can be

Re: Sockets programming question

2013-01-28 Thread Alfred Perlstein
On 1/28/13 10:11 AM, Ian Lepore wrote: I've got a question that isn't exactly freebsd-specific, but implemenation-specific behavior may be involved. I've got a server process that accepts connections from clients on a PF_LOCAL stream socket. Multiple clients can be connected at once; a list of

Sockets programming question

2013-01-28 Thread Ian Lepore
I've got a question that isn't exactly freebsd-specific, but implemenation-specific behavior may be involved. I've got a server process that accepts connections from clients on a PF_LOCAL stream socket. Multiple clients can be connected at once; a list of them is tracked internally. The server o