This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Duplicating Unix Domain Sockets
- From: Bob Friesenhahn <bfriesen at simple dot dallas dot tx dot us>
- To: David E Euresti <davie at MIT dot EDU>
- Cc: cygwin at cygwin dot com
- Date: Mon, 3 Jun 2002 19:01:01 -0500 (CDT)
- Subject: Re: Duplicating Unix Domain Sockets
On Mon, 3 Jun 2002, David E Euresti wrote:
> I'm not so sure that it'll make it that much slower. I mean we are talking
> of adding only a couple of bytes to every send Unix Domain sockets. And
> Unix domain sockets never go outside the computer. Obviously it'll hurt
Given that the implementation of Unix domain sockets normally pass
womping 108 byte path strings (see Richard W. Stephens TCP/IP
Illustrated Volume 3 or the 'sockaddr_un' structure) with each message
a few extra bytes of overhead won't matter very much.
> if your program usually sends small packets, but you'll gain in being able
> to pass file descriptors through there.
Small packets are likely to be smaller than the address. :-)
Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/