#include <socks5bytestream.h>
Inherits ConnectionDataHandler, and Bytestream.
Inheritance diagram for SOCKS5Bytestream:

Public Member Functions | |
| virtual | ~SOCKS5Bytestream () |
| virtual bool | connect () |
| virtual void | close () |
| virtual bool | send (const std::string &data) |
| virtual ConnectionError | recv (int timeout=-1) |
| void | setConnectionImpl (ConnectionBase *connection) |
| ConnectionBase * | connectionImpl () |
| void | setStreamHosts (const StreamHostList &hosts) |
| virtual void | handleReceivedData (const ConnectionBase *connection, const std::string &data) |
| virtual void | handleConnect (const ConnectionBase *connection) |
| virtual void | handleDisconnect (const ConnectionBase *connection, ConnectionError reason) |
One instance of this class handles one bytestream.
See SOCKS5BytestreamManager for a detailed description on how to implement SOCKS5 Bytestreams in your application.
Definition at line 42 of file socks5bytestream.h.
|
|
Virtual destructor. Definition at line 37 of file socks5bytestream.cpp. |
|
|
Closes the bytestream. Implements Bytestream. Definition at line 106 of file socks5bytestream.cpp. |
|
|
This function starts the connection process. That is, it attempts to connect to each of the available StreamHosts. Once a working StreamHosts is found, the SOCKS5BytestreamManager is notified and the function returns.
Implements Bytestream. Definition at line 60 of file socks5bytestream.cpp. |
|
|
This function returns the concrete connection implementation currently in use.
Definition at line 101 of file socks5bytestream.h. |
|
|
This function is called when e.g. the raw TCP connection was established.
Implements ConnectionDataHandler. Definition at line 139 of file socks5bytestream.cpp. |
|
||||||||||||
|
This connection is called when e.g. the raw TCP connection was closed.
Implements ConnectionDataHandler. Definition at line 144 of file socks5bytestream.cpp. |
|
||||||||||||
|
This function is called for received from the underlying transport.
Implements ConnectionDataHandler. Definition at line 116 of file socks5bytestream.cpp. |
|
|
Call this function repeatedly to receive data from the socket. You should even do this if you use the bytestream to merely send data.
Implements Bytestream. Definition at line 91 of file socks5bytestream.cpp. |
|
|
Use this function to send a chunk of data over an open bytestream. There is no limit for the size of the chunk (other than your machine's memory). If the stream is not open or has been closed again (by the remote entity or locally), nothing is sent and false is returned.
Implements Bytestream. Definition at line 83 of file socks5bytestream.cpp. |
|
|
Sets the connection to use.
Definition at line 46 of file socks5bytestream.cpp. |
|
|
Use this function to set the available StreamHosts. Usually you should not need to use this function directly. Definition at line 107 of file socks5bytestream.h. |
1.4.1