27 const std::shared_ptr<SSLContext>& ctx,
29 bool deferSecurityNegotiation =
false)
47 connect_(callback, address,
timeout, options, bindAddr);
58 void(
const unsigned char**,
unsigned*));
61 bool(
const unsigned char**,
unsigned*));
66 std::chrono::milliseconds timeout,
68 if (timeout > std::chrono::milliseconds::zero()) {
76 sslConnectMockable(cb, timeout, verify);
81 std::chrono::milliseconds timeout,
83 if (timeout > std::chrono::milliseconds::zero()) {
91 sslAcceptMockable(cb, timeout, verify);
98 std::chrono::milliseconds,
105 std::chrono::milliseconds,
bool good() const override
void sslConn(AsyncSSLSocket::HandshakeCB *cb, std::chrono::milliseconds timeout, const SSLContext::SSLVerifyPeerEnum &verify) override
virtual bool hangup() const
MOCK_METHOD3(sslConnectMockable, void(AsyncSSLSocket::HandshakeCB *, std::chrono::milliseconds, const SSLContext::SSLVerifyPeerEnum &))
MOCK_METHOD1(setReadCB, void(ReadCallback *))
MOCK_CONST_METHOD2(getSelectedNextProtocol, void(const unsigned char **, unsigned *))
—— Concurrent Priority Queue Implementation ——
requires E e noexcept(noexcept(s.error(std::move(e))))
Timeout handshakeTimeout_
void sslAccept(AsyncSSLSocket::HandshakeCB *cb, std::chrono::milliseconds timeout, const SSLContext::SSLVerifyPeerEnum &verify) override
MOCK_METHOD0(closeNow, void())
MOCK_CONST_METHOD0(good, bool())
void setReadCB(ReadCallback *callback) override
std::map< OptionKey, int > OptionMap
SocketAddress getPeerAddress() const
MockAsyncSSLSocket(const std::shared_ptr< SSLContext > &ctx, EventBase *base, bool deferSecurityNegotiation=false)
MOCK_METHOD5(connect_, void(AsyncSocket::ConnectCallback *, const folly::SocketAddress &, int, const OptionMap &, const folly::SocketAddress &))
SocketAddress getLocalAddress() const
virtual bool getSelectedNextProtocolNoThrow(const unsigned char **protoName, unsigned *protoLen) const
StateEnum state_
StateEnum describing current state.
bool readable() const override
void connect(AsyncSocket::ConnectCallback *callback, const folly::SocketAddress &address, int timeout, const OptionMap &options, const folly::SocketAddress &bindAddr) noexceptoverride
HandshakeCB * handshakeCallback_
MOCK_CONST_METHOD1(getLocalAddress, void(folly::SocketAddress *))
bool scheduleTimeout(TimeoutManager::timeout_type timeout)
virtual void getSelectedNextProtocol(const unsigned char **protoName, unsigned *protoLen) const