#include <socks5bytestreamhandler.h>
Detailed Description
A virtual interface that allows to receive new incoming SOCKS5 Bytestream requests from remote entities.
See SOCKS5BytestreamManager for a detailed description on how to implement SOCKS5 Bytestreams.
- Author
- Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
- Since
- 0.9
Definition at line 33 of file socks5bytestreamhandler.h.
Constructor & Destructor Documentation
Member Function Documentation
Notifies the implementor of a new incoming SOCKS5 bytestream. The bytestream is not yet ready to send data. To initialize the bytestream and to prepare it for data transfer, register a SOCKS5BytestreamDataHandler with it and call its connect() method. To not block your application while the data transfer lasts, you most likely want to put the bytestream into its own thread or process (before calling connect() on it). It is safe to do so without additional synchronization. When you are finished using the bytestream, use SIProfileFT::dispose() (or SOCKS5BytestreamManager::dispose() if you use SOCKS5BytestreamManager directly) to get rid of it.
- Parameters
-
Implemented in SIProfileFT.
virtual void handleIncomingSOCKS5BytestreamRequest |
( |
const std::string & |
sid, |
|
|
const JID & |
from |
|
) |
| |
|
pure virtual |
virtual void handleSOCKS5BytestreamError |
( |
Stanza * |
stanza, |
|
|
const std::string & |
sid |
|
) |
| |
|
pure virtual |
Notifies the handler of errors occuring when a bytestream was requested. For example, if the remote entity does not implement SOCKS5 bytestreams.
- Parameters
-
Implemented in SIProfileFT.
The documentation for this class was generated from the following file: