Message6790
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? |
|
Date |
User |
Action |
Args |
2012-03-09 13:20:20 | hulettbh | set | recipients:
+ hulettbh |
2012-03-09 13:20:20 | hulettbh | set | messageid: <1331299220.53.0.367999852129.issue1846@psf.upfronthosting.co.za> |
2012-03-09 13:20:20 | hulettbh | link | issue1846 messages |
2012-03-09 13:20:19 | hulettbh | create | |
|