|
Twitch SDK (Internal)
|
#include <ichattransport.h>
Public Member Functions | |
| virtual | ~IChatTransport () |
| virtual TTV_ErrorCode | Connect (const std::string &uri)=0 |
| virtual TTV_ErrorCode | Close ()=0 |
| virtual bool | IsOpen ()=0 |
| virtual void | SetReader (std::shared_ptr< IChatTransportReader > reader)=0 |
| virtual TTV_ErrorCode | Write (const char *pData, size_t nSize)=0 |
| virtual TTV_ErrorCode | ProcessIncomingEvent (bool &handled)=0 |
Static Public Attributes | |
| static const uint32_t | kMaxIrcTextLength = 2048 |
| The max number of bytes allowed in the text area of the message. More... | |
| static const uint32_t | kMaxIrcTagsLength = 4096 |
| The max number of bytes allowed in the IRCv3 tags area of the message. More... | |
| static const uint32_t | kMaxBufferSize = kMaxIrcTextLength + kMaxIrcTagsLength |
Interface implemented by components which send and receive data.
|
virtual |
Destructor.
|
pure virtual |
Implemented in ttv::chat::ChatSocketTransport.
|
pure virtual |
Implemented in ttv::chat::ChatSocketTransport.
|
pure virtual |
Implemented in ttv::chat::ChatSocketTransport.
|
pure virtual |
Reads a single incoming event. Does not block. This will make calls into the reader.
| handled | Whether or not there was an event to handle. |
Implemented in ttv::chat::ChatSocketTransport.
|
pure virtual |
Sets the reader which will receive data from reads.
Implemented in ttv::chat::ChatSocketTransport.
|
pure virtual |
Writes the given data to the transport.
Implemented in ttv::chat::ChatSocketTransport.
|
static |
|
static |
The max number of bytes allowed in the IRCv3 tags area of the message.
|
static |
The max number of bytes allowed in the text area of the message.
1.8.13