#include <openssl_operation.hpp>
Public Member Functions | |
openssl_operation (ssl_primitive_func primitive, Stream &socket, net_buffer &recv_buf, SSL *session, BIO *ssl_bio, user_handler_func handler, asio::io_service::strand &strand) | |
openssl_operation (ssl_primitive_func primitive, Stream &socket, net_buffer &recv_buf, SSL *session, BIO *ssl_bio) | |
int | start () |
Private Types | |
typedef boost::function< int(const asio::error_code &, int)> | int_handler_func |
typedef boost::function< int()> | read_func |
typedef boost::function< int(bool, int)> | write_func |
Private Member Functions | |
void | async_read_handler (const asio::error_code &error, size_t bytes_recvd) |
int | async_user_handler (asio::error_code error, int rc) |
void | async_write_handler (bool is_operation_done, int rc, const asio::error_code &error, size_t bytes_sent) |
int | do_async_read () |
int | do_async_write (bool is_operation_done, int rc) |
int | do_sync_read () |
int | do_sync_write (bool is_operation_done, int rc) |
int | sync_user_handler (const asio::error_code &error, int rc) |
Private Attributes | |
int_handler_func | handler_ |
ssl_primitive_func | primitive_ |
read_func | read_ |
net_buffer & | recv_buf_ |
net_buffer | send_buf_ |
SSL * | session_ |
Stream & | socket_ |
BIO * | ssl_bio_ |
asio::io_service::strand * | strand_ |
user_handler_func | user_handler_ |
write_func | write_ |
Definition at line 81 of file openssl_operation.hpp.
typedef boost::function<int (const asio::error_code&, int)> asio::ssl::detail::openssl_operation< Stream >::int_handler_func [private] |
Definition at line 238 of file openssl_operation.hpp.
typedef boost::function<int ()> asio::ssl::detail::openssl_operation< Stream >::read_func [private] |
Definition at line 240 of file openssl_operation.hpp.
typedef boost::function<int (bool, int)> asio::ssl::detail::openssl_operation< Stream >::write_func [private] |
Definition at line 239 of file openssl_operation.hpp.
asio::ssl::detail::openssl_operation< Stream >::openssl_operation | ( | ssl_primitive_func | primitive, |
Stream & | socket, | ||
net_buffer & | recv_buf, | ||
SSL * | session, | ||
BIO * | ssl_bio, | ||
user_handler_func | handler, | ||
asio::io_service::strand & | strand | ||
) | [inline] |
Definition at line 86 of file openssl_operation.hpp.
asio::ssl::detail::openssl_operation< Stream >::openssl_operation | ( | ssl_primitive_func | primitive, |
Stream & | socket, | ||
net_buffer & | recv_buf, | ||
SSL * | session, | ||
BIO * | ssl_bio | ||
) | [inline] |
Definition at line 117 of file openssl_operation.hpp.
void asio::ssl::detail::openssl_operation< Stream >::async_read_handler | ( | const asio::error_code & | error, |
size_t | bytes_recvd | ||
) | [inline, private] |
Definition at line 393 of file openssl_operation.hpp.
int asio::ssl::detail::openssl_operation< Stream >::async_user_handler | ( | asio::error_code | error, |
int | rc | ||
) | [inline, private] |
Definition at line 270 of file openssl_operation.hpp.
void asio::ssl::detail::openssl_operation< Stream >::async_write_handler | ( | bool | is_operation_done, |
int | rc, | ||
const asio::error_code & | error, | ||
size_t | bytes_sent | ||
) | [inline, private] |
Definition at line 353 of file openssl_operation.hpp.
int asio::ssl::detail::openssl_operation< Stream >::do_async_read | ( | ) | [inline, private] |
Definition at line 371 of file openssl_operation.hpp.
int asio::ssl::detail::openssl_operation< Stream >::do_async_write | ( | bool | is_operation_done, |
int | rc | ||
) | [inline, private] |
Definition at line 284 of file openssl_operation.hpp.
int asio::ssl::detail::openssl_operation< Stream >::do_sync_read | ( | ) | [inline, private] |
Definition at line 473 of file openssl_operation.hpp.
int asio::ssl::detail::openssl_operation< Stream >::do_sync_write | ( | bool | is_operation_done, |
int | rc | ||
) | [inline, private] |
Definition at line 434 of file openssl_operation.hpp.
int asio::ssl::detail::openssl_operation< Stream >::start | ( | ) | [inline] |
Definition at line 146 of file openssl_operation.hpp.
int asio::ssl::detail::openssl_operation< Stream >::sync_user_handler | ( | const asio::error_code & | error, |
int | rc | ||
) | [inline, private] |
Definition at line 262 of file openssl_operation.hpp.
int_handler_func asio::ssl::detail::openssl_operation< Stream >::handler_ [private] |
Definition at line 247 of file openssl_operation.hpp.
ssl_primitive_func asio::ssl::detail::openssl_operation< Stream >::primitive_ [private] |
Definition at line 242 of file openssl_operation.hpp.
read_func asio::ssl::detail::openssl_operation< Stream >::read_ [private] |
Definition at line 246 of file openssl_operation.hpp.
net_buffer& asio::ssl::detail::openssl_operation< Stream >::recv_buf_ [private] |
Definition at line 255 of file openssl_operation.hpp.
net_buffer asio::ssl::detail::openssl_operation< Stream >::send_buf_ [private] |
Definition at line 249 of file openssl_operation.hpp.
SSL* asio::ssl::detail::openssl_operation< Stream >::session_ [private] |
Definition at line 259 of file openssl_operation.hpp.
Stream& asio::ssl::detail::openssl_operation< Stream >::socket_ [private] |
Definition at line 257 of file openssl_operation.hpp.
BIO* asio::ssl::detail::openssl_operation< Stream >::ssl_bio_ [private] |
Definition at line 258 of file openssl_operation.hpp.
asio::io_service::strand* asio::ssl::detail::openssl_operation< Stream >::strand_ [private] |
Definition at line 244 of file openssl_operation.hpp.
user_handler_func asio::ssl::detail::openssl_operation< Stream >::user_handler_ [private] |
Definition at line 243 of file openssl_operation.hpp.
write_func asio::ssl::detail::openssl_operation< Stream >::write_ [private] |
Definition at line 245 of file openssl_operation.hpp.