From a1b51f374f440645d9f8139f696180ae24d74db5 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 25 Oct 1992 19:20:47 +0000 Subject: Fixed comments --- Demo/sockets/mcast.py | 8 ++++---- 1 file 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 -- cgit v0.12