homepage

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.

Author splitscreen
Recipients
Date 2006年05月05日.13:12:43
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=1126061
According to http://www.sockets.com/winsock.htm#GetSockOpt
"The integer pointed to by optlen should originally contain
the size of this buffer; on return, it will be set to the
size of the value returned. For SO_LINGER, this will be the
size of a struct linger; for all other options it will be
the size of an integer." 
The size of a linger struct is 4 bytes. 
I would agree that the Python documentation for
socket.getsockopt is a little confusing.
"Get a socket option. See the Unix manual for level and
option. If a nonzero buffersize argument is given, the
return value is a string of that length; otherwise it is an
integer."
Perhaps just refer users to the OSes documentation on its
implementation of sockets?
Matt
History
Date User Action Args
2007年08月23日 14:39:49adminlinkissue1482328 messages
2007年08月23日 14:39:49admincreate

AltStyle によって変換されたページ (->オリジナル) /