Two Pythons talking to each other?
petravick@FNAL.GOV
petravic at fnal.gov
Thu Jul 8 13:01:48 EDT 1999
AF_UNIX is likely to me more effcient if that matters.
AF_INET will run about the whole protocol stack, AF_UNIX
is usually implemented to be more like a pipe...
-- DOn
On Thu, 8 Jul 1999, Charles G Waldman wrote:
> Date: Thu, 08 Jul 1999 11:00:09 -0500 (CDT)
> From: Charles G Waldman <cgw at fnal.gov>
> To: Per Kistler <kistler at fnmail.com>
> Cc: python-list at cwi.nl
> Subject: Re: Two Pythons talking to each other?
> Newsgroups: comp.lang.python
>
> Per Kistler writes:
> > Hi Hans
> >
> > One could use sockets with AF_INET, if it runs on another
> > machine, and sockets with AF_UNIX, if it's on the the same
> > host.
>
> There's no particular reason to use AF_UNIX, even if the two processes
> are running on the same node. AF_INET with a loopback IP address
> works fine, and is portable (not all platforms support unix-domain
> sockets).
>
More information about the Python-list
mailing list