HI all,
I'm using in Windows XP, Visual Studio 10.0.
Something like:
int s;
fd_set FDRead;
...
s = accept(..)
...
SSL_accept(ssl);
...
FD_ZERO(&FDRead)
...
while (1)
{
FD_SET(s,&FDRead);
select(0,&FDRead,NULL, NULL, o)
...
if (FD_ISSET(s,&FDRead)){
...
FD_CLR(s,&FDRead);
}
...
}
...
closesocket(s);
I hope had helped you.
Leonardo
-----Mensagem original-----
De: [email protected] [mailto:[email protected]] Em
nome de Jakob Bohm
Enviada em: quinta-feira, 5 de janeiro de 2012 12:43
Para: [email protected]
Assunto: Re: socket functions on fds
On 1/5/2012 2:45 PM, Nathan Smyth wrote:
> Quick question.
>
> Can you use the standard socket functions (i.e. poll/select) on a fd for a
> ssl connection?
> I know you need to use the ssl_read/writes and other functions etc to
> actually 'do stuff', but do the std socket state checking functions work on a
> socket that has SSL initiated?
>
>
On UNIX/POSIX/Linux/BSD/MacOSX/AppleIOS: Yes.
On DOS/Windows/OS2: No
On BEOS/SymbianOpenC/MacClassic/Other: Don't know
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]