Re: Sockets windows 64 bit

2008-03-27 Thread Andy Polyakov
Windows SOCKET is a handler to *kernel* object and as such constitutes an *offset* in per-process handle table. As this table can accommodate not more than 2^24 entries, it's always *safe* to cast/truncate SOCKET to 32-bit value and back. Even on 64-bit Windows. for reference, http://msdn2.micr

RE: Sockets windows 64 bit

2008-03-26 Thread David Schwartz
> > Windows SOCKET is a handler to *kernel* object and as such constitutes > > an *offset* in per-process handle table. As this table can accommodate > > not more than 2^24 entries, it's always *safe* to cast/truncate SOCKET > > to 32-bit value and back. Even on 64-bit Windows. > for reference,

Re: Sockets windows 64 bit

2008-03-26 Thread Andy Polyakov
>> The SSL_set_fd and SSL_get_fd take an int as parameter for the socket. >> While this was fine on windows 32 bit and on all *nix variants (even >> 64 bit), this is not fine anymore on Windows 64 bit. >> I hope this can be fixed. Because a SOCKET on windows 64 bit is a >> UINT_PTR which is 64 bit

Re: Sockets windows 64 bit

2008-03-26 Thread Andy Polyakov
The SSL_set_fd and SSL_get_fd take an int as parameter for the socket. While this was fine on windows 32 bit and on all *nix variants (even 64 bit), this is not fine anymore on Windows 64 bit. I hope this can be fixed. Because a SOCKET on windows 64 bit is a UINT_PTR which is 64 bit while an int

Sockets windows 64 bit

2008-03-25 Thread j_ gs
Hi The SSL_set_fd and SSL_get_fd take an int as parameter for the socket. While this was fine on windows 32 bit and on all *nix variants (even 64 bit), this is not fine anymore on Windows 64 bit. I hope this can be fixed. Because a SOCKET on windows 64 bit is a UINT_PTR which is 64 bit while an i