From 8e644f0e7c566b2b03461e21ae3fa3af159acfc9 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 5 Dec 2011 01:43:32 +0100 Subject: Reword IPC section --- Doc/howto/sockets.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Doc/howto/sockets.rst b/Doc/howto/sockets.rst index 603df59..f2da397 100644 --- a/Doc/howto/sockets.rst +++ b/Doc/howto/sockets.rst @@ -123,12 +123,13 @@ IPC --- If you need fast IPC between two processes on one machine, you should look into -whatever form of shared memory the platform offers. A simple protocol based -around shared memory and locks or semaphores is by far the fastest technique. +pipes or shared memory. If you do decide to use AF_INET sockets, bind the +"server" socket to ``'localhost'``. On most platforms, this will take a +shortcut around a couple of layers of network code and be quite a bit faster. -If you do decide to use sockets, bind the "server" socket to ``'localhost'``. On -most platforms, this will take a shortcut around a couple of layers of network -code and be quite a bit faster. +.. seealso:: + The :mod:`multiprocessing` integrates cross-platform IPC into a higher-level + API. Using a Socket -- cgit v0.12