#include <inbandbytestream.h>
Inherits Bytestream, and IqHandler.
Inheritance diagram for InBandBytestream:

Public Member Functions | |
| virtual | ~InBandBytestream () |
| int | blockSize () const |
| void | setBlockSize (int blockSize) |
| virtual ConnectionError | recv (int timeout=-1) |
| bool | send (const std::string &data) |
| virtual bool | connect () |
| virtual void | close () |
| virtual bool | handleIq (const IQ &iq) |
| virtual void | handleIqID (const IQ &iq, int context) |
One instance of this class handles a single byte stream.
See SIProfileFT for a detailed description on how to implement file transfer.
Definition at line 37 of file inbandbytestream.h.
|
|
Virtual destructor. Definition at line 107 of file inbandbytestream.cpp. |
|
|
Lets you retrieve this bytestream's block-size.
Definition at line 52 of file inbandbytestream.h. |
|
|
Closes the bytestream. Implements Bytestream. Definition at line 235 of file inbandbytestream.cpp. |
|
|
This function starts the connection process.
Implements Bytestream. Definition at line 119 of file inbandbytestream.cpp. |
|
|
Reimplement this function if you want to be notified about incoming IQs.
Implements IqHandler. Definition at line 153 of file inbandbytestream.cpp. |
|
||||||||||||
|
Reimplement this function if you want to be notified about incoming IQs with a specific value of the
Implements IqHandler. Definition at line 134 of file inbandbytestream.cpp. |
|
|
Call this function repeatedly to receive data. You should even do this if you use the bytestream to merely send data. May be a NOOP, depending on the actual stream type.
Implements Bytestream. Definition at line 62 of file inbandbytestream.h. |
|
|
Use this function to send a chunk of data over an open bytestream. If the stream is not open or has been closed again (by the remote entity or locally), nothing is sent and false is returned. This function does any base64 encoding for you, if necessary.
Implements Bytestream. Definition at line 201 of file inbandbytestream.cpp. |
|
|
Sets the stream's block-size. Default: 4096
Definition at line 59 of file inbandbytestream.h. |
1.4.1