18 class ChatSocketTransport;
36 virtual void SetReader(std::shared_ptr<IChatTransportReader> reader);
43 std::shared_ptr<IChatTransportReader>
mReader;
std::shared_ptr< IChatTransportReader > mReader
The reader who will be notified when data is received.
Definition: chatsockettransport.h:43
Definition: chatsockettransport.h:26
virtual void SetReader(std::shared_ptr< IChatTransportReader > reader)
virtual TTV_ErrorCode ProcessIncomingEvent(bool &handled)
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
std::shared_ptr< IWebSocket > mWebSocket
The websocket for sending and receiving chat messages on.
Definition: chatsockettransport.h:45
virtual ~ChatSocketTransport()
uint32_t TTV_ErrorCode
Definition: errortypes.h:30
virtual TTV_ErrorCode Connect(const std::string &uri)
std::shared_ptr< ISocket > mSocket
The raw socket for sending and receiving chat messages on.
Definition: chatsockettransport.h:44
virtual TTV_ErrorCode Write(const char *pData, size_t nSize)
virtual TTV_ErrorCode Close()
static TTV_ErrorCode CheckFactoryAvailability(const std::string &uri)
Definition: ichattransport.h:53
std::vector< char > mBuffer
A scratch buffer for reading data.
Definition: chatsockettransport.h:46