tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Proposal: Add option to add dates to write(1)

> If datagrams are used, the daemon design would be very simple, simply
> handling one message at a time arriving on a single descriptor.  I no
> longer remember if only connected stream sockets receive client
> credentials, [...]

I'd suggest considering doing a datagram send for initial rendezvous
and to get SCM_CREDS, but accompany that datagram send with an
SCM_RIGHTS send of one end of a SOCK_STREAM socketpair over which all
further communication would be carried out (or perhaps two fds, one
each way, allowing the user of pipes instead of a socketpair).

This would, it seems to me, give the best of both worlds.

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML      
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Home | Main Index | Thread Index | Old Index