18 class OpenSslSocketFactory;
51 static void SetTrustedHosts(
const std::vector<std::string>& trustedHosts);
77 virtual bool IsProtocolSupported(
const std::string& protocol);
std::string mCertificateData
Definition: standardopensslsocket.h:67
TTV_ErrorCode CreateSocket(const std::string &uri, std::shared_ptr< ISocket > &result)
static std::vector< std::string > sTrustedHosts
Definition: standardopensslsocket.h:62
TTV_ErrorCode Initialize(const std::string &host, const std::string &port)
virtual TTV_ErrorCode Send(const uint8_t *buffer, size_t length, size_t &sent)
virtual uint64_t TotalReceived()
TTV_ErrorCode FlushIncoming()
TTV_ErrorCode Handshake()
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
std::shared_ptr< ISocket > mBaseSocket
Definition: standardopensslsocket.h:65
static TTV_ErrorCode ShutdownOpenSslSockets()
TTV_ErrorCode FlushOutgoing()
TTV_ErrorCode SetCertificateData(const std::string &data)
TTV_ErrorCode PrepareConnection()
uint32_t TTV_ErrorCode
Definition: errortypes.h:30
virtual TTV_ErrorCode Disconnect()
std::unique_ptr< SocketData > mSocketData
Definition: standardopensslsocket.h:66
Definition: standardopensslsocket.h:25
static void SetTrustedHosts(const std::vector< std::string > &trustedHosts)
bool mConnected
Definition: standardopensslsocket.h:69
virtual TTV_ErrorCode Connect()
virtual uint64_t TotalSent()
Definition: standardopensslsocket.h:73
virtual TTV_ErrorCode Recv(uint8_t *buffer, size_t length, size_t &received)
std::string mPort
Definition: standardopensslsocket.h:64
std::string mHost
Definition: standardopensslsocket.h:63
static TTV_ErrorCode InitializeOpenSslSockets()