mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
parent
ef6a19e3ea
commit
06fd5f8cc8
5 changed files with 38 additions and 30 deletions
|
|
@ -6,7 +6,7 @@ from socket import *
|
|||
FILE = 'unix-socket'
|
||||
s = socket(AF_UNIX, SOCK_STREAM)
|
||||
s.connect(FILE)
|
||||
s.send('Hello, world')
|
||||
s.send(b'Hello, world')
|
||||
data = s.recv(1024)
|
||||
s.close()
|
||||
print('Received', repr(data))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue