[issue23127] socket.setsockopt() is still broken for multicast TTL and Loop options

Benjamin Peterson report at bugs.python.org
Mon Dec 29 19:17:08 CET 2014


Benjamin Peterson added the comment:

"Just" use the extended signature of the setsockopt:
    mysocket.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, struct.pack("B", desired_ttl))

----------
nosy: +benjamin.peterson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23127>
_______________________________________


More information about the Python-bugs-list mailing list