From: Guido van Rossum Date: Sun, 25 Oct 1992 19:20:47 +0000 (+0000) Subject: Fixed comments X-Git-Tag: v0.9.8~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1b51f374f440645d9f8139f696180ae24d74db5;p=thirdparty%2FPython%2Fcpython.git Fixed comments --- diff --git a/Demo/sockets/mcast.py b/Demo/sockets/mcast.py index a6bee7cd8e73..c2bcaef43d9d 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