mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Fixed comments
This commit is contained in:
parent
f3994ff9e7
commit
a1b51f374f
1 changed files with 4 additions and 4 deletions
|
@ -34,13 +34,13 @@ if sender:
|
|||
s.sendto(data, (mygroup, MYPORT))
|
||||
time.sleep(1)
|
||||
else:
|
||||
# Bind the socket to my port
|
||||
s.bind('', MYPORT)
|
||||
|
||||
# Allow multiple copies of this program on one machine
|
||||
s.setsockopt(SOL_SOCKET, SO_REUSEPORT, 1) # (Not strictly needed)
|
||||
|
||||
# Ugly: construct binary group address from MYGROUP converted to bytes
|
||||
# Bind the socket to my port
|
||||
s.bind('', MYPORT)
|
||||
|
||||
# Construct binary group address from MYGROUP converted to bytes
|
||||
bytes = eval(regsub.gsub('\.', ',', MYGROUP))
|
||||
grpaddr = 0
|
||||
for byte in bytes: grpaddr = (grpaddr << 8) | byte
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue