summaryrefslogtreecommitdiffstats
path: root/Doc/howto/sockets.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-12-05 00:43:32 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-12-05 00:43:32 (GMT)
commit8e644f0e7c566b2b03461e21ae3fa3af159acfc9 (patch)
treec8c5f42360149659f65be2cfc2f9d3582ae3ab8c /Doc/howto/sockets.rst
parent834545117011acd4272e96b2885d590037548aa4 (diff)
downloadcpython-8e644f0e7c566b2b03461e21ae3fa3af159acfc9.zip
cpython-8e644f0e7c566b2b03461e21ae3fa3af159acfc9.tar.gz
cpython-8e644f0e7c566b2b03461e21ae3fa3af159acfc9.tar.bz2
Reword IPC section
Diffstat (limited to 'Doc/howto/sockets.rst')
-rw-r--r--Doc/howto/sockets.rst11
1 files 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