Author hulettbh
Recipients hulettbh
Date 2012-03-09.13:20:19
SpamBayes Score 4.41193e-09
Marked as misclassified No
Message-id <>
So the New Socket Module documentation ( 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?
Date User Action Args
2012-03-09 13:20:20hulettbhsetrecipients: + hulettbh
2012-03-09 13:20:20hulettbhsetmessageid: <>
2012-03-09 13:20:20hulettbhlinkissue1846 messages
2012-03-09 13:20:19hulettbhcreate