On Thu, Feb 02, 2006, Bastian Bhrig wrote:

> Hello,
> 
> my server-application is waiting for connections via
> 
> BIO_do_accept(acc)
> 
> If a client connects to my server-application I would like to know which
> IP-Adress the client has. How can I get this infomation?
> 

You can get the underlying socket using BIO_get_fd() on the BIO. From that you
can get the address using for example getpeername().

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to