|
Twitch SDK (Internal)
|
#include <chatreader.h>
Public Member Functions | |
| ChatReader () | |
| ~ChatReader () | |
| void | SetNotifySink (IChatReceiveNetworkEvent *pNotify) |
| virtual void | OnConnect (TTV_ErrorCode err, const char *error) |
| virtual void | OnError (TTV_ErrorCode err) |
| virtual void | OnClose () |
| virtual void | OnRead (const char *pData, size_t nSize) |
| void | OnLineRead (const char *line) |
Private Member Functions | |
| bool | ParseEvent (ChatNetworkEvent &evt, const char *line) |
Private Attributes | |
| IChatReceiveNetworkEvent * | mNotify |
| The component to notify when a line is successfully read. More... | |
| uint32_t | mLineLength |
| The number of characters in the line buffer. More... | |
| std::vector< char > | mLineBuffer |
| The scratch buffer which may store a partial line between reads from the transport. More... | |
| char | mParseBuffer [IChatTransport::kMaxBufferSize] |
| A scratch buffer for parsing lines. More... | |
Takes lines received from the transport and parses them.
| ttv::chat::ChatReader::ChatReader | ( | ) |
| ttv::chat::ChatReader::~ChatReader | ( | ) |
|
virtual |
Inject information into the read when a disconnection occurs.
Implements ttv::chat::IChatTransportReader.
|
virtual |
Inject information into the read when a connection occurs.
Implements ttv::chat::IChatTransportReader.
|
virtual |
Inject information into the read when an error occurs.
Implements ttv::chat::IChatTransportReader.
| void ttv::chat::ChatReader::OnLineRead | ( | const char * | line | ) |
Parses the given IRC line and acts upon the content, producing events if needed.
|
virtual |
Read raw data from a transport.
Implements ttv::chat::IChatTransportReader.
|
private |
Parses the given IRC line and populates the event structure.
|
inline |
Sets the event notifier instance to use for sending events.
|
private |
The scratch buffer which may store a partial line between reads from the transport.
|
private |
The number of characters in the line buffer.
|
private |
The component to notify when a line is successfully read.
|
private |
A scratch buffer for parsing lines.
1.8.13