mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
*** empty log message ***
This commit is contained in:
parent
9e80d6f125
commit
d55f4d1a76
5 changed files with 12 additions and 13 deletions
|
@ -9,5 +9,6 @@ s = socket(AF_INET, SOCK_DGRAM)
|
|||
s.bind('', MYPORT)
|
||||
|
||||
while 1:
|
||||
data = s.recv(1500)
|
||||
data, wherefrom = s.recvfrom(1500, 0)
|
||||
sys.stderr.write(`wherefrom` + '\n')
|
||||
sys.stdout.write(data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue