Problems with Demo/sockets/mcast.py
Charles Follett
cfollett at gac.edu
Fri Feb 25 09:28:37 EST 2000
> From: "Jerome Chan" <jchan at maxvu.com>
> Subject: Problems with Demo/sockets/mcast.py
>
> File "./mcast.py", line 89, in openmcastsock
> s.setsockopt(IPPROTO_IP, IP_ADD_MEMBERSHIP, mreq)
> socket.error: (22, 'Invalid argument')
Yeah, I ran into this, too. After the graddr is calculated, but before
the mreq is packed, you want to do:
grpaddr = htonl(grpaddr)
Then it will work fine. At least on linux, never tried on win.
charley
More information about the Python-list
mailing list