Message6785

Author vleloup
Recipients vleloup
Date 2012-02-28.20:52:53
SpamBayes Score 8.78612e-05
Marked as misclassified No
Message-id <1330462373.66.0.975922129269.issue1844@psf.upfronthosting.co.za>
In-reply-to
Content
Test program :
import socket
sok=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sok.bind(("", 0))
sok.listen(100)
print sok.getsockname()[0]

returned value:
- python: 0.0.0.0
- jython: 0:0:0:0:0:0:0:0

Issue:
The value returned by jython is of the wrong family: AF_INET6 instead of AF_INET as requested.

context:
>jython --version
Jython 2.5.1+

>java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.9) (6b18-1.8.9-0.1~squeeze1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
History
Date User Action Args
2012-02-28 20:52:53vleloupsetrecipients: + vleloup
2012-02-28 20:52:53vleloupsetmessageid: <1330462373.66.0.975922129269.issue1844@psf.upfronthosting.co.za>
2012-02-28 20:52:53vlelouplinkissue1844 messages
2012-02-28 20:52:53vleloupcreate