commit | bbc1007c507d770843f95012586a03e7c0f039db | [log] [download] |
---|---|---|
author | Paul Bakker <p.j.bakker@offspark.com> | Mon Oct 14 16:33:24 2013 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Tue Oct 15 11:55:57 2013 +0200 |
tree | f6d2ec5137bab7cc600d74340d206e416e2ba3d5 | |
parent | a7ea6a5a18d9e7177551972f1f9e4f310efe906f [diff] |
Convert SOCKET to int to prevent compiler warnings under MSVC. From kernel objects at msdn: Kernel object handles are process specific. That is, a process must either create the object or open an existing object to obtain a kernel object handle. The per-process limit on kernel handles is 2^24. Windows Internals by Russinovich and Solomon as well says that the high bits are zero.