proxygen
|
#include <TLSPlaintextPeekingCallback.h>
Public Member Functions | |
TLSPlaintextPeekingCallback () | |
AcceptorHandshakeHelper::UniquePtr | getHelper (const std::vector< uint8_t > &bytes, const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime, TransportInfo &tinfo) override |
Public Member Functions inherited from wangle::PeekingAcceptorHandshakeHelper::PeekCallback | |
PeekCallback (size_t bytesRequired) | |
virtual | ~PeekCallback ()=default |
size_t | getBytesRequired () const |
Private Types | |
enum | { kPeekCount = 9 } |
Static Private Member Functions | |
static bool | looksLikeTLS (const std::vector< uint8_t > &peekBytes) |
A peeking callback that makes it convenient to create a server that will accept both TLS and plaintext traffic.
Definition at line 28 of file TLSPlaintextPeekingCallback.h.
|
private |
|
inline |
Definition at line 32 of file TLSPlaintextPeekingCallback.h.
References getHelper(), and looksLikeTLS().
|
overridevirtual |
Implements wangle::PeekingAcceptorHandshakeHelper::PeekCallback.
Definition at line 36 of file TLSPlaintextPeekingCallback.cpp.
References looksLikeTLS().
Referenced by TLSPlaintextPeekingCallback().
|
staticprivate |
Definition at line 20 of file TLSPlaintextPeekingCallback.cpp.
References kPeekCount.
Referenced by getHelper(), and TLSPlaintextPeekingCallback().