#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) | |
| 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(bool, int)> | write_func |
Private Member Functions | |
| int | sync_user_handler (const asio::error_code &error, int rc) |
| int | async_user_handler (const asio::error_code &error, int rc) |
| int | do_async_write (bool is_operation_done, int rc) |
| void | async_write_handler (bool is_operation_done, int rc, const asio::error_code &error, size_t bytes_sent) |
| void | do_async_read () |
| void | async_read_handler (const asio::error_code &error, size_t bytes_recvd) |
| int | do_sync_write (bool is_operation_done, int rc) |
| int | do_sync_read () |
Private Attributes | |
| ssl_primitive_func | primitive_ |
| user_handler_func | user_handler_ |
| write_func | write_ |
| int_handler_func | handler_ |
| net_buffer | send_buf_ |
| net_buffer & | recv_buf_ |
| Stream & | socket_ |
| BIO * | ssl_bio_ |
| SSL * | session_ |
Definition at line 80 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 223 of file openssl_operation.hpp.
typedef boost::function<int (bool, int)> asio::ssl::detail::openssl_operation< Stream >::write_func [private] |
Definition at line 224 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 | |||
| ) | [inline] |
Definition at line 85 of file openssl_operation.hpp.
References asio::ssl::detail::openssl_operation< Stream >::async_user_handler(), asio::detail::socket_ops::bind(), asio::ssl::detail::openssl_operation< Stream >::do_async_write(), asio::ssl::detail::openssl_operation< Stream >::handler_, and asio::ssl::detail::openssl_operation< Stream >::write_.
| 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 110 of file openssl_operation.hpp.
References asio::detail::socket_ops::bind(), asio::ssl::detail::openssl_operation< Stream >::do_sync_write(), asio::ssl::detail::openssl_operation< Stream >::handler_, asio::ssl::detail::openssl_operation< Stream >::sync_user_handler(), and asio::ssl::detail::openssl_operation< Stream >::write_.
| int asio::ssl::detail::openssl_operation< Stream >::start | ( | ) | [inline] |
Definition at line 134 of file openssl_operation.hpp.
References asio::ssl::detail::net_buffer::data_removed(), asio::detail::error_base< T >::eof, asio::ssl::detail::net_buffer::get_data_len(), asio::ssl::detail::net_buffer::get_data_start(), asio::ssl::detail::openssl_operation< Stream >::handler_, asio::native_ecat, asio::detail::error_base< T >::no_recovery, asio::ssl::detail::openssl_operation< Stream >::primitive_, asio::ssl::detail::openssl_operation< Stream >::recv_buf_, asio::ssl::detail::openssl_operation< Stream >::session_, asio::detail::error_base< T >::shut_down, asio::ssl::detail::openssl_operation< Stream >::ssl_bio_, asio::ssl_ecat, and asio::ssl::detail::openssl_operation< Stream >::write_.
Referenced by asio::ssl::detail::openssl_operation< Stream >::async_read_handler(), asio::ssl::detail::openssl_operation< Stream >::async_write_handler(), asio::ssl::detail::openssl_operation< Stream >::do_sync_read(), asio::ssl::detail::openssl_stream_service::handshake(), asio::ssl::detail::openssl_stream_service::read_some(), and asio::ssl::detail::openssl_stream_service::shutdown().
| int asio::ssl::detail::openssl_operation< Stream >::sync_user_handler | ( | const asio::error_code & | error, | |
| int | rc | |||
| ) | [inline, private] |
Definition at line 244 of file openssl_operation.hpp.
Referenced by asio::ssl::detail::openssl_operation< Stream >::openssl_operation().
| int asio::ssl::detail::openssl_operation< Stream >::async_user_handler | ( | const asio::error_code & | error, | |
| int | rc | |||
| ) | [inline, private] |
Definition at line 252 of file openssl_operation.hpp.
References asio::ssl::detail::openssl_operation< Stream >::user_handler_.
Referenced by asio::ssl::detail::openssl_operation< Stream >::openssl_operation().
| int asio::ssl::detail::openssl_operation< Stream >::do_async_write | ( | bool | is_operation_done, | |
| int | rc | |||
| ) | [inline, private] |
Definition at line 259 of file openssl_operation.hpp.
References asio::async_write(), asio::ssl::detail::openssl_operation< Stream >::async_write_handler(), asio::detail::socket_ops::bind(), asio::buffer(), asio::placeholders::bytes_transferred, asio::ssl::detail::net_buffer::data_added(), asio::ssl::detail::openssl_operation< Stream >::do_async_read(), asio::placeholders::error, asio::ssl::detail::net_buffer::get_unused_len(), asio::ssl::detail::net_buffer::get_unused_start(), asio::ssl::detail::openssl_operation< Stream >::handler_, asio::detail::error_base< T >::no_recovery, asio::ssl::detail::openssl_operation< Stream >::send_buf_, asio::ssl::detail::openssl_operation< Stream >::socket_, and asio::ssl::detail::openssl_operation< Stream >::ssl_bio_.
Referenced by asio::ssl::detail::openssl_operation< Stream >::openssl_operation().
| 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 324 of file openssl_operation.hpp.
References asio::ssl::detail::net_buffer::data_removed(), asio::ssl::detail::openssl_operation< Stream >::handler_, asio::ssl::detail::openssl_operation< Stream >::send_buf_, and asio::ssl::detail::openssl_operation< Stream >::start().
Referenced by asio::ssl::detail::openssl_operation< Stream >::do_async_write().
| void asio::ssl::detail::openssl_operation< Stream >::do_async_read | ( | ) | [inline, private] |
Definition at line 342 of file openssl_operation.hpp.
References asio::ssl::detail::openssl_operation< Stream >::async_read_handler(), asio::detail::socket_ops::bind(), asio::buffer(), asio::placeholders::bytes_transferred, asio::placeholders::error, asio::ssl::detail::net_buffer::get_unused_len(), asio::ssl::detail::net_buffer::get_unused_start(), asio::ssl::detail::openssl_operation< Stream >::recv_buf_, and asio::ssl::detail::openssl_operation< Stream >::socket_.
Referenced by asio::ssl::detail::openssl_operation< Stream >::do_async_write().
| void asio::ssl::detail::openssl_operation< Stream >::async_read_handler | ( | const asio::error_code & | error, | |
| size_t | bytes_recvd | |||
| ) | [inline, private] |
Definition at line 359 of file openssl_operation.hpp.
References asio::ssl::detail::net_buffer::data_added(), asio::ssl::detail::net_buffer::data_removed(), asio::ssl::detail::net_buffer::get_data_len(), asio::ssl::detail::net_buffer::get_data_start(), asio::ssl::detail::openssl_operation< Stream >::handler_, asio::detail::error_base< T >::no_recovery, asio::ssl::detail::openssl_operation< Stream >::recv_buf_, asio::ssl::detail::openssl_operation< Stream >::ssl_bio_, and asio::ssl::detail::openssl_operation< Stream >::start().
Referenced by asio::ssl::detail::openssl_operation< Stream >::do_async_read().
| int asio::ssl::detail::openssl_operation< Stream >::do_sync_write | ( | bool | is_operation_done, | |
| int | rc | |||
| ) | [inline, private] |
Definition at line 400 of file openssl_operation.hpp.
References asio::buffer(), asio::ssl::detail::net_buffer::data_added(), asio::ssl::detail::net_buffer::data_removed(), asio::ssl::detail::openssl_operation< Stream >::do_sync_read(), asio::ssl::detail::net_buffer::get_unused_len(), asio::ssl::detail::net_buffer::get_unused_start(), asio::detail::error_base< T >::no_recovery, asio::ssl::detail::openssl_operation< Stream >::send_buf_, asio::ssl::detail::openssl_operation< Stream >::socket_, asio::ssl::detail::openssl_operation< Stream >::ssl_bio_, and asio::write().
Referenced by asio::ssl::detail::openssl_operation< Stream >::openssl_operation().
| int asio::ssl::detail::openssl_operation< Stream >::do_sync_read | ( | ) | [inline, private] |
Definition at line 439 of file openssl_operation.hpp.
References asio::buffer(), asio::ssl::detail::net_buffer::data_added(), asio::ssl::detail::net_buffer::data_removed(), asio::ssl::detail::net_buffer::get_data_len(), asio::ssl::detail::net_buffer::get_data_start(), asio::ssl::detail::net_buffer::get_unused_len(), asio::ssl::detail::net_buffer::get_unused_start(), asio::detail::error_base< T >::no_recovery, asio::ssl::detail::openssl_operation< Stream >::recv_buf_, asio::ssl::detail::openssl_operation< Stream >::socket_, asio::ssl::detail::openssl_operation< Stream >::ssl_bio_, and asio::ssl::detail::openssl_operation< Stream >::start().
Referenced by asio::ssl::detail::openssl_operation< Stream >::do_sync_write().
ssl_primitive_func asio::ssl::detail::openssl_operation< Stream >::primitive_ [private] |
Definition at line 226 of file openssl_operation.hpp.
Referenced by asio::ssl::detail::openssl_operation< Stream >::start().
user_handler_func asio::ssl::detail::openssl_operation< Stream >::user_handler_ [private] |
Definition at line 227 of file openssl_operation.hpp.
Referenced by asio::ssl::detail::openssl_operation< Stream >::async_user_handler().
write_func asio::ssl::detail::openssl_operation< Stream >::write_ [private] |
Definition at line 228 of file openssl_operation.hpp.
Referenced by asio::ssl::detail::openssl_operation< Stream >::openssl_operation(), and asio::ssl::detail::openssl_operation< Stream >::start().
int_handler_func asio::ssl::detail::openssl_operation< Stream >::handler_ [private] |
Definition at line 229 of file openssl_operation.hpp.
Referenced by asio::ssl::detail::openssl_operation< Stream >::async_read_handler(), asio::ssl::detail::openssl_operation< Stream >::async_write_handler(), asio::ssl::detail::openssl_operation< Stream >::do_async_write(), asio::ssl::detail::openssl_operation< Stream >::openssl_operation(), and asio::ssl::detail::openssl_operation< Stream >::start().
net_buffer asio::ssl::detail::openssl_operation< Stream >::send_buf_ [private] |
net_buffer& asio::ssl::detail::openssl_operation< Stream >::recv_buf_ [private] |
Definition at line 237 of file openssl_operation.hpp.
Referenced by asio::ssl::detail::openssl_operation< Stream >::async_read_handler(), asio::ssl::detail::openssl_operation< Stream >::do_async_read(), asio::ssl::detail::openssl_operation< Stream >::do_sync_read(), and asio::ssl::detail::openssl_operation< Stream >::start().
Stream& asio::ssl::detail::openssl_operation< Stream >::socket_ [private] |
Definition at line 239 of file openssl_operation.hpp.
Referenced by asio::ssl::detail::openssl_operation< Stream >::do_async_read(), asio::ssl::detail::openssl_operation< Stream >::do_async_write(), asio::ssl::detail::openssl_operation< Stream >::do_sync_read(), and asio::ssl::detail::openssl_operation< Stream >::do_sync_write().
BIO* asio::ssl::detail::openssl_operation< Stream >::ssl_bio_ [private] |
Definition at line 240 of file openssl_operation.hpp.
Referenced by asio::ssl::detail::openssl_operation< Stream >::async_read_handler(), asio::ssl::detail::openssl_operation< Stream >::do_async_write(), asio::ssl::detail::openssl_operation< Stream >::do_sync_read(), asio::ssl::detail::openssl_operation< Stream >::do_sync_write(), and asio::ssl::detail::openssl_operation< Stream >::start().
SSL* asio::ssl::detail::openssl_operation< Stream >::session_ [private] |
Definition at line 241 of file openssl_operation.hpp.
Referenced by asio::ssl::detail::openssl_operation< Stream >::start().
1.5.6