Message144526
Currently the Python implementation of socket.getsockopt allows only option name, level name and buffer size as its arguments. However, IEEE Standard 1003.1-2008 allows one further argument -- an actual buffer to modify at the kernel level. POSIX does not prohibit the kernel from reading this buffer before modification, and the contents of the buffer may be used together with option and level names to specify an exact socket option to return.
In fact, this is how some applications already work, ipset (http://ipset.netfilter.org/) being a noticeable example.
The patch, written against Python 3.2 and aiming at providing this functionality, is attached. It may also apply to previous Python versions, though it's not tested against anything except Python 3.2. |
|
Date |
User |
Action |
Args |
2011-09-25 17:12:20 | ximaera | set | recipients:
+ ximaera |
2011-09-25 17:12:20 | ximaera | set | messageid: <1316970740.88.0.976956666008.issue13045@psf.upfronthosting.co.za> |
2011-09-25 17:12:20 | ximaera | link | issue13045 messages |
2011-09-25 17:12:20 | ximaera | create | |
|