Twitch SDK (Internal)
Public Member Functions | List of all members
ttv::chat::IChatTransportReader Class Referenceabstract

#include <ichattransport.h>

Inheritance diagram for ttv::chat::IChatTransportReader:
ttv::chat::ChatReader

Public Member Functions

virtual ~IChatTransportReader ()
 
virtual void OnConnect (TTV_ErrorCode hr, const char *error)=0
 
virtual void OnError (TTV_ErrorCode hr)=0
 
virtual void OnClose ()=0
 
virtual void OnRead (const char *pData, size_t nSize)=0
 

Detailed Description

Interface implemented by components which read from a transport.

Constructor & Destructor Documentation

◆ ~IChatTransportReader()

virtual ttv::chat::IChatTransportReader::~IChatTransportReader ( )
virtual

Destructor.

Member Function Documentation

◆ OnClose()

virtual void ttv::chat::IChatTransportReader::OnClose ( )
pure virtual

Inject information into the read when a disconnection occurs.

Implemented in ttv::chat::ChatReader.

◆ OnConnect()

virtual void ttv::chat::IChatTransportReader::OnConnect ( TTV_ErrorCode  hr,
const char *  error 
)
pure virtual

Inject information into the read when a connection occurs.

Implemented in ttv::chat::ChatReader.

◆ OnError()

virtual void ttv::chat::IChatTransportReader::OnError ( TTV_ErrorCode  hr)
pure virtual

Inject information into the read when an error occurs.

Implemented in ttv::chat::ChatReader.

◆ OnRead()

virtual void ttv::chat::IChatTransportReader::OnRead ( const char *  pData,
size_t  nSize 
)
pure virtual

Read raw data from a transport.

Implemented in ttv::chat::ChatReader.


The documentation for this class was generated from the following file: