Re: unix socket & fcntl => kernel oops ?

From: Chris Wedgwood (cw@f00f.org)
Date: Tue May 30 2000 - 23:31:57 EST


On Tue, May 30, 2000 at 10:25:07PM +0000, Miquel van Smoorenburg wrote:

    Wouldn't it be a lot more elegant if open() on a Unix socket was
    equivalent to socket() / connect() ?

Yes -- but it would be non-portable and thus not a good idea IMO.
Write a wrapped to socket/connect and all is ms_open if you want
something like that.

    That would mean that server apps that now use a named pipe (fifo)
    for their clients to connect to could move to a Unix socket without
    changing the client at all, but they would be able to get at
    the client credentials using SO_CRED

Nice, but as I said -- non-portable therefore of questionable value
right now (IMO).

  --cw

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:26 EST