New submission from Brian <hulettbh@...>:
So the New Socket Module documentation (http://wiki.python.org/jython/NewSocketModule) states:
"If you find a difference in behaviour between cpython and jython that is not documented here, and where jython is behaving differently to the cpython socket documentation, then that should be considered a bug and reported, please."
I've run into a few issues while porting a python application to jython which all stemmed from the socket module.
The most frustrating for me was the inability to configure a socket for multicast like so:
self._sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
self._sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 1)
because the IPPROTO_IP and IP_MULTICAST_TTL constants are not defined in the jython socket module. Hard-coding their values doesn't work either (Not surprisingly, but I figured it was worth a shot).
Are there any plans to add this ability? or is the only option to use the Java MulticastSocket library directly?
title: cannot configure socket() for Multicast
Jython tracker <report@...>