Fixed comments

This commit is contained in:
Guido van Rossum 1992-10-25 19:20:47 +00:00
parent f3994ff9e7
commit a1b51f374f
1 changed files with 4 additions and 4 deletions

View File

@ -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