Staging
v0.5.1
https://github.com/python/cpython
Revision 4ca58a9fd2c8a41b07a73c4652bac177f0e9b46e authored by Éric Araujo on 12 November 2010, 20:31:17 UTC, committed by Éric Araujo on 12 November 2010, 20:31:17 UTC
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86274 | eric.araujo | 2010-11-06 16:57:52 +0100 (sam., 06 nov. 2010) | 2 lines

  Correct the fix for #10252: Popen objects have no close method.
........
  r86276 | eric.araujo | 2010-11-06 19:03:52 +0100 (sam., 06 nov. 2010) | 2 lines

  Fix #10252 again (hopefully definitely).  Patch by Brian Curtin.
........
1 parent 749930f
Raw File
Tip revision: 4ca58a9fd2c8a41b07a73c4652bac177f0e9b46e authored by Éric Araujo on 12 November 2010, 20:31:17 UTC
Merged revisions 86274,86276 via svnmerge from
Tip revision: 4ca58a9
unixclient.py
# Echo client demo using Unix sockets
# Piet van Oostrum

from socket import *

FILE = 'unix-socket'
s = socket(AF_UNIX, SOCK_STREAM)
s.connect(FILE)
s.send('Hello, world')
data = s.recv(1024)
s.close()
print 'Received', repr(data)
back to top