mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Add more whitespace; use a better socket name
This commit is contained in:
parent
46df918314
commit
9fef9b166e
2 changed files with 14 additions and 5 deletions
|
@ -1,7 +1,9 @@
|
|||
# Echo client demo using Unix sockets
|
||||
# Piet van Oostrum
|
||||
|
||||
from socket import *
|
||||
FILE = 'blabla'
|
||||
|
||||
FILE = 'unix-socket'
|
||||
s = socket(AF_UNIX, SOCK_STREAM)
|
||||
s.connect(FILE)
|
||||
s.send('Hello, world')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue