diff options
author | Guido van Rossum <guido@python.org> | 1992-10-25 19:20:47 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-10-25 19:20:47 (GMT) |
commit | a1b51f374f440645d9f8139f696180ae24d74db5 (patch) | |
tree | 3e7bae85d84ec0847e37a32f5de6bb39aed6836b /Demo/sockets | |
parent | f3994ff9e73e0c5e21951fbacb455f9f69e908b3 (diff) | |
download | cpython-a1b51f374f440645d9f8139f696180ae24d74db5.zip cpython-a1b51f374f440645d9f8139f696180ae24d74db5.tar.gz cpython-a1b51f374f440645d9f8139f696180ae24d74db5.tar.bz2 |
Fixed comments
Diffstat (limited to 'Demo/sockets')
-rwxr-xr-x | Demo/sockets/mcast.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Demo/sockets/mcast.py b/Demo/sockets/mcast.py index a6bee7c..c2bcaef 100755 --- a/Demo/sockets/mcast.py +++ b/Demo/sockets/mcast.py @@ -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 |