mirror of https://github.com/python/cpython.git
Fixed comments
This commit is contained in:
parent
f3994ff9e7
commit
a1b51f374f
|
@ -34,13 +34,13 @@
|
||||||
s.sendto(data, (mygroup, MYPORT))
|
s.sendto(data, (mygroup, MYPORT))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
else:
|
else:
|
||||||
# Bind the socket to my port
|
|
||||||
s.bind('', MYPORT)
|
|
||||||
|
|
||||||
# Allow multiple copies of this program on one machine
|
# Allow multiple copies of this program on one machine
|
||||||
s.setsockopt(SOL_SOCKET, SO_REUSEPORT, 1) # (Not strictly needed)
|
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))
|
bytes = eval(regsub.gsub('\.', ',', MYGROUP))
|
||||||
grpaddr = 0
|
grpaddr = 0
|
||||||
for byte in bytes: grpaddr = (grpaddr << 8) | byte
|
for byte in bytes: grpaddr = (grpaddr << 8) | byte
|
||||||
|
|
Loading…
Reference in New Issue