I think even I am getting confused.  I have a group of processes on a box
that will always be on the same box, so I was looking for a fast way for
them to communicate.  My options are:

TCP over loopback
Unix Domain Sockets
Pipes

Pipes will not fulfill my needs, so I was looking into Unix Domain
Sockets(UDS).  Since there are no NIO providers for UDS, I was interested in
writing my own and that is when I posed the question to the list.  But if
TCP over loopback is not going to be any faster than UDS, then I will stick
with TCP over loopback.  UDP is not an option because I cannot drop packets.

Sorry for the confusion.  I hope this clears things up.
Thank you.

-- 
..Cheers
Mark

On 9/14/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote:
>
> Mark,
>
> What do you mean by "TCP over Unix Domain Sockets" ??
> I think Unix Domain Sockets could be an alternative for TCP (or UDP) if
> you
> don't need inter-machine connectivity.
> But TCP 'over' Unix Domain Sockets ?
>
> Julien is just saying that UDS might be faster than loopback TCP, but
> probably not much faster than loopback UDP.
>
>
> http://lists.freebsd.org/pipermail/freebsd-performance/2005-February/001143.html
>
> regards,
> Maarten
>
>
>
> On 9/14/07, Mark <[EMAIL PROTECTED]> wrote:
> >
> > Additionally, I want to use TCP over Unix Domain Sockets and not UDP.
> >
> > --
> > ..Cheers
> > Mark
> >
> > On 9/14/07, Mark <[EMAIL PROTECTED]> wrote:
> > >
> > > I think you are confusing User Datagram Protocol with Unix Domain
> > > Sockets.  UDP are the datagram packets, UDS communicates via a virtual
> > > socket represented by a file on POSIX compliant operating systems.
> > >
> > > --
> > > ..Cheers
> > > Mark
> > >
> > > On 9/14/07, Julien Vermillard <[EMAIL PROTECTED]> wrote:
> > > >
> > > > On Fri, 14 Sep 2007 09:18:50 -0400
> > > > Mark <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > Domain
> > > > > Sockets are no faster than TCP over loopback I would love to see
> > > > > them.  I would hate to spend much more time on this project only
> to
> > > > > find out that TCP would work just as well.
> > > > >
> > > > > Thanks again!
> > > > >
> > > > > --
> > > >
> > > > Unix domain sockets are supposed to be faster due to the fact it's
> not
> > > > passing thru the operating system TCP/IP stack (ex : ACK provoquing
> > > > context switching) but using UDP I'm pretty sure the overhead is
> small
> > > > (perhaps the CRC?). It prolly worth a benchmark ;)
> > > >
> > > > Julien
> > > >
> > >
> > >
> >
>

Reply via email to