This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 baikie
收信人 baikie, synapse, therve
日期 2009-12-14.20:54:38
SpamBayes Score 3.1866892e-07
Marked as misclassified
Message-id <1260824084.29.0.545343922223.issue6560@psf.upfronthosting.co.za>
In-reply-to
内容
Hi, I'm afraid there may have been some duplication of effort
here - I set about reworking Heiko Wundram's original patch
(issue #1194378) without knowing about this one.  I don't have
unit tests yet either, but I saw this and thought I'd better post
what I had.  It includes the items on Kalman's to-do list.

This patch is based on Heiko's original code, but changes the
interface, dropping the special processing of SCM_RIGHTS, etc. (I
think the encoding/decoding would be better handled with separate
functions/classes), and adds source address (msg_name) support
and scatter/gather I/O via sendmsg() and a new recvmsg_into()
method, as well as fixing various bugs and limitations.

Comments/flames welcome too.  You'll see a few XXX comments in
the code.  One in particular refers to the msg_name value from
recvmsg() on a connected socket; I've said in the docstring that
it is "unspecified" in this case, but it might or might not
contain a valid address, depending on the OS.  These methods may
also need to be conditionally compiled if, say, CMSG_SPACE (or
sendmsg/recvmsg?) isn't available somewhere.

I didn't add a facility to receive into only part of a buffer in
recvmsg_into(), like the one in recv_into(), since memoryview
objects make it redundant AFAICT.
历史
日期 用户 动作 参数
2009-12-14 20:54:45baikie修改recipients: + baikie, therve, synapse
2009-12-14 20:54:44baikie修改messageid: <1260824084.29.0.545343922223.issue6560@psf.upfronthosting.co.za>
2009-12-14 20:54:43baikie链接issue6560 messages
2009-12-14 20:54:41baikie创建