|
Boost Users : |
Subject: Re: [Boost-users] [ASIO] Newbie; How can I access remote_endpoint data in an SSL server
From: Igor R (boost.lists_at_[hidden])
Date: 2009-02-18 13:21:57
>
> How can I determine the Client Address from the ssl_socket which is
> defined as
>
> typedef boost::asio::ssl::stream<boost::asio::ip::tcp::socket> ssl_socket;
>
ssl_socket::lowest_layer() gives you reference to the underlaying tcp socket
(actually, to basic_stream_socket). From there, you can use any socket
methods:
http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/reference/basic_stream_socket.html
Eg., sslSocket.lowest_layer().remote_endpoint();// etc
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net