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: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] Em nome de Jakob Bohm Enviada em: quinta-feira, 5 de janeiro de 2012 12:43 Para: openssl-users@openssl.org 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 openssl-users@openssl.org Automated List Manager majord...@openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org