[Python-Dev] Socket module corner cases (original) (raw)

Bruce Christensen t-bruch at microsoft.com
Tue May 30 23:02:36 CEST 2006


Hello,

I'm working on implementing a socket module for IronPython that aims to be compatible with the standard CPython module documented at http://docs.python.org/lib/module-socket.html. I have a few questions about some corner cases that I've found. CPython results below are from Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32.

Without further ado, the questions:

expected 'mybox.mydomain.com'

expected 'otherbox.mydomain.com'

... print p, ... print socket.getprotobyname(p) ... except socket.error: ... print "(not handled)" ... AH (not handled) DSTOPTS (not handled) ESP (not handled) FRAGMENT (not handled) GGP 3 HOPOPTS (not handled) ICMP 1 ICMPV6 (not handled) IDP (not handled) IGMP (not handled) IP 0 IPV4 (not handled) IPV6 (not handled) MAX (not handled) ND (not handled) NONE (not handled) PUP 12 RAW (not handled) ROUTING (not handled) TCP 6 UDP 17

Thanks for your help!

--Bruce



More information about the Python-Dev mailing list