Message125969
| Author |
vstinner |
| Recipients |
amaury.forgeotdarc, brian.curtin, janglin, loewis, pitrou, schmir, vstinner |
| Date |
2011年01月11日.00:48:38 |
| SpamBayes Score |
0.0016376621 |
| Marked as misclassified |
No |
| Message-id |
<1294706923.01.0.477412408219.issue9566@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
ssl_sock_fd_int.patch: add SOCKET_T_AS_INT(fd) macro to cast a socket descriptor (SOCKET_T) to int. I choosed a macro just to not have to repeat a comment twice :-)
It looks like it is a safe to cast SOCKET_T to int. My comment:
/* On Windows, SOCKET_T is an offset in per-process handle table.
The per-process limit on kernel handles is 2^24. Kernel Objects:
http://msdn.microsoft.com/en-us/library/ms724485%28VS.85%29.aspx
*/ |
|