#include <inbandbytestreamdatahandler.h>
Public Member Functions | |
virtual | ~InBandBytestreamDataHandler () |
virtual void | handleInBandData (const std::string &data, const std::string &sid)=0 |
virtual void | handleInBandError (const std::string &sid, const JID &remote, StanzaError se)=0 |
virtual void | handleInBandClose (const std::string &sid, const JID &from)=0 |
An InBandBytestreamDataHandler is registered with an InBandBytestream.
See InBandBytestreamManager for a detailed description on how to implement In-Band Bytestreams.
Definition at line 35 of file inbandbytestreamdatahandler.h.
virtual ~InBandBytestreamDataHandler | ( | ) | [inline, virtual] |
Virtual destructor.
Definition at line 41 of file inbandbytestreamdatahandler.h.
virtual void handleInBandData | ( | const std::string & | data, | |
const std::string & | sid | |||
) | [pure virtual] |
Reimplement this function to receive data which is sent over the bytestream. The data received here is (probably) only a single chunk of the complete data (depending on the amount of data you want to send). In any case, its size is at maximum equal to the bytestream's negotiated blocksize.
data | The actual stream payload. Not base64 encoded. | |
sid | The stream's ID. |
Referenced by InBandBytestream::filter().
virtual void handleInBandError | ( | const std::string & | sid, | |
const JID & | remote, | |||
StanzaError | se | |||
) | [pure virtual] |
Notifies about an error occuring while using a bytestream. When this handler is called the stream has already been closed.
sid | The stream's ID. | |
remote | The remote entity. | |
se | The error. |
Referenced by InBandBytestream::filter().
virtual void handleInBandClose | ( | const std::string & | sid, | |
const JID & | from | |||
) | [pure virtual] |