9 #ifndef TTVSDK_CHATREADER_H 10 #define TTVSDK_CHATREADER_H 44 virtual void OnRead(
const char* pData,
size_t nSize);
63 #endif // TTVSDK_CHATREADER_H
virtual void OnRead(const char *pData, size_t nSize)
virtual void OnError(TTV_ErrorCode err)
static const uint32_t kMaxBufferSize
Definition: ichattransport.h:58
uint32_t mLineLength
The number of characters in the line buffer.
Definition: chatreader.h:58
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
bool ParseEvent(ChatNetworkEvent &evt, const char *line)
std::vector< char > mLineBuffer
The scratch buffer which may store a partial line between reads from the transport.
Definition: chatreader.h:59
IChatReceiveNetworkEvent * mNotify
The component to notify when a line is successfully read.
Definition: chatreader.h:57
uint32_t TTV_ErrorCode
Definition: errortypes.h:30
char mParseBuffer[IChatTransport::kMaxBufferSize]
A scratch buffer for parsing lines.
Definition: chatreader.h:60
void OnLineRead(const char *line)
void SetNotifySink(IChatReceiveNetworkEvent *pNotify)
Definition: chatreader.h:37
Definition: ichattransport.h:24
Definition: chatreader.h:28
Definition: chatnetworkevent.h:86
Definition: chatnetworkevent.h:29
virtual void OnConnect(TTV_ErrorCode err, const char *error)