setting a socket to multicast

Adam Langley usenet at imperialviolet.org
Mon Nov 25 18:48:40 EST 2002


On Tue, 26 Nov 2002 08:16:47 +1100, Brad Hards wrote:

> ip_mreqn = struct.pack('IIi', dottedQuadtoNum(addr), 0, 0)

ip_mreqn = struct.pack ('>IIi', dottedQuadtoNum(addr), 0, 0)

(you always pass IPs in big-endian order to the kernel)

I don't know if that actaully works, but the setsockopt doesn't throw an
exception with that change, at least.





More information about the Python-list mailing list