#include <socks5bytestreamserver.h>
Inherits ConnectionHandler, and ConnectionDataHandler.
Inheritance diagram for SOCKS5BytestreamServer:


Public Member Functions | |
| SOCKS5BytestreamServer (const LogSink &logInstance, int port, const std::string &ip="") | |
| ~SOCKS5BytestreamServer () | |
| ConnectionError | listen () |
| ConnectionError | recv (int timeout) |
| void | stop () |
| virtual void | handleIncomingConnection (ConnectionBase *connection) |
| virtual void | handleReceivedData (const ConnectionBase *connection, const std::string &data) |
| virtual void | handleConnect (const ConnectionBase *connection) |
| virtual void | handleDisconnect (const ConnectionBase *connection, ConnectionError reason) |
It is safe to put a SOCKS5BytestreamServer instance into a separate thread.
Definition at line 37 of file socks5bytestreamserver.h.
|
||||||||||||||||
|
Constructs a new SOCKS5BytestreamServer.
Definition at line 21 of file socks5bytestreamserver.cpp. |
|
|
Destructor. Definition at line 28 of file socks5bytestreamserver.cpp. |
|
|
This function is called when e.g. the raw TCP connection was established.
Implements ConnectionDataHandler. Definition at line 199 of file socks5bytestreamserver.cpp. |
|
||||||||||||
|
This connection is called when e.g. the raw TCP connection was closed.
Implements ConnectionDataHandler. Definition at line 204 of file socks5bytestreamserver.cpp. |
|
|
This function is called to receive an incoming connection.
Implements ConnectionHandler. Definition at line 115 of file socks5bytestreamserver.cpp. |
|
||||||||||||
|
This function is called for received from the underlying transport.
Implements ConnectionDataHandler. Definition at line 123 of file socks5bytestreamserver.cpp. |
|
|
Starts listening on the specified interface and port.
Definition at line 38 of file socks5bytestreamserver.cpp. |
|
|
Call this function repeatedly to check for incoming connections and to negotiate them.
Definition at line 46 of file socks5bytestreamserver.cpp. |
|
|
Stops listening and unbinds from the interface and port. Definition at line 75 of file socks5bytestreamserver.cpp. |
1.4.1