13 #ifndef __SSL_SOCKET_WRAPPER__ 14 #define __SSL_SOCKET_WRAPPER__ 40 const openssl::TLSClientConfig& config)
override;
84 Once accept_loop_started;
107 #endif // __SSL_SOCKET_WRAPPER__
Definition: openssl_socket.hpp:27
Future< Nothing > connect(const Address &address) override
Try< Nothing, SocketError > shutdown(int how) override
Shuts down the socket.
Future< ControlFlow< size_t > > handle_ssl_return_result(int result, bool handle_as_read)
Try< Bytes > size(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
Definition: stat.hpp:130
int_fd s
Definition: socket.hpp:246
Kind
Available kinds of implementations.
Definition: socket.hpp:67
~OpenSSLSocketImpl() override
Definition: address.hpp:324
Future< size_t > send(const char *data, size_t size) override
Try< Address > address() const
Returns the Address with the assigned ip and assigned port.
Future< std::shared_ptr< SocketImpl > > accept() override
Returns an implementation corresponding to the next pending connection for the listening socket...
Future< size_t > set_ssl_and_do_handshake(SSL *_ssl)
Definition: poll_socket.hpp:27
void handle_accept_callback(const std::shared_ptr< SocketImpl > &socket)
SocketImpl::Kind kind() const override
Definition: openssl_socket.hpp:46
Future< size_t > recv(char *data, size_t size) override
Definition: attributes.hpp:24
Definition: executor.hpp:48
OpenSSLSocketImpl(int_fd _s)
static Try< std::shared_ptr< SocketImpl > > create(int_fd s)
Try< Netlink< struct nl_sock > > socket(int protocol=NETLINK_ROUTE)
Definition: internal.hpp:91
int int_fd
Definition: int_fd.hpp:35
Future< size_t > sendfile(int_fd fd, off_t offset, size_t size) override