|
Twitch SDK (Internal)
|
#include <chatsockettransport.h>
Public Member Functions | |
| ChatSocketTransport () | |
| virtual | ~ChatSocketTransport () |
| virtual TTV_ErrorCode | Connect (const std::string &uri) |
| virtual TTV_ErrorCode | Close () |
| virtual bool | IsOpen () |
| virtual void | SetReader (std::shared_ptr< IChatTransportReader > reader) |
| virtual TTV_ErrorCode | ProcessIncomingEvent (bool &handled) |
| virtual TTV_ErrorCode | Write (const char *pData, size_t nSize) |
Static Public Member Functions | |
| static TTV_ErrorCode | CheckFactoryAvailability (const std::string &uri) |
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 |
Private Attributes | |
| std::shared_ptr< IChatTransportReader > | mReader |
| The reader who will be notified when data is received. More... | |
| std::shared_ptr< ISocket > | mSocket |
| The raw socket for sending and receiving chat messages on. More... | |
| std::shared_ptr< IWebSocket > | mWebSocket |
| The websocket for sending and receiving chat messages on. More... | |
| std::vector< char > | mBuffer |
| A scratch buffer for reading data. More... | |
An implementation of a transport which handles sending and receiving data over a TCP socket.
| ttv::chat::ChatSocketTransport::ChatSocketTransport | ( | ) |
|
virtual |
|
static |
|
virtual |
Implements ttv::chat::IChatTransport.
|
virtual |
Implements ttv::chat::IChatTransport.
|
virtual |
Implements ttv::chat::IChatTransport.
|
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. |
Implements ttv::chat::IChatTransport.
|
virtual |
Sets the reader which will receive data from reads.
Implements ttv::chat::IChatTransport.
|
virtual |
Writes the given data to the transport.
Implements ttv::chat::IChatTransport.
|
staticinherited |
|
staticinherited |
The max number of bytes allowed in the IRCv3 tags area of the message.
|
staticinherited |
The max number of bytes allowed in the text area of the message.
|
private |
A scratch buffer for reading data.
|
private |
The reader who will be notified when data is received.
|
private |
The raw socket for sending and receiving chat messages on.
|
private |
The websocket for sending and receiving chat messages on.
1.8.13