7 #include "caf/config.hpp" 12 #include <openssl/ssl.h> 15 #include "caf/io/network/default_multiplexer.hpp" 16 #include "caf/io/network/native_socket.hpp" 18 #include "caf/actor_system.hpp" 19 #include "caf/detail/openssl_export.hpp" 21 #if OPENSSL_VERSION_NUMBER >= 0x10100000L 22 # define CAF_SSL_HAS_NON_VERSIONED_TLS_FUN 25 #if defined(SSL_CTX_set_ecdh_auto) 26 # define CAF_SSL_HAS_ECDH_AUTO 31 using native_socket = io::network::native_socket;
41 rw_state read_some(
size_t&
result, native_socket fd,
void* buf,
size_t len);
42 rw_state write_some(
size_t& result, native_socket fd,
const void* buf,
44 bool try_connect(native_socket fd);
45 bool try_accept(native_socket fd);
47 bool must_read_more(native_socket,
size_t threshold);
49 const char* openssl_passphrase();
52 rw_state do_some(
int (*f)(SSL*,
void*,
int),
size_t& result,
void* buf,
53 size_t len,
const char* debug_name);
54 SSL_CTX* create_ssl_context();
55 std::string get_ssl_error();
56 bool handle_ssl_result(
int ret);
61 std::string openssl_passphrase_;
71 bool from_accepted_socket);
rw_state
Denotes the returned state of read and write operations on sockets.
Definition: rw_state.hpp:10
std::unique_ptr< session > session_ptr
Definition: session.hpp:67
Wraps the result of a message handler to represent either a value (wrapped into a message)...
Definition: fwd.hpp:64
Definition: session.hpp:35
Actor environment including scheduler, registry, and optional components such as a middleman...
Definition: actor_system.hpp:87