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

Public Member Functions | |
| SOCKS5BytestreamServer (const LogSink &logInstance, int port, const std::string &ip=EmptyString) | |
| ~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 22 of file socks5bytestreamserver.cpp. |
|
|
Destructor. Definition at line 29 of file socks5bytestreamserver.cpp. |
|
|
This function is called when e.g. the raw TCP connection was established.
Implements ConnectionDataHandler. Definition at line 204 of file socks5bytestreamserver.cpp. |
|
||||||||||||
|
This connection is called when e.g. the raw TCP connection was closed.
Implements ConnectionDataHandler. Definition at line 209 of file socks5bytestreamserver.cpp. |
|
|
This function is called to receive an incoming connection.
Implements ConnectionHandler. Definition at line 120 of file socks5bytestreamserver.cpp. |
|
||||||||||||
|
This function is called for received from the underlying transport.
Implements ConnectionDataHandler. Definition at line 128 of file socks5bytestreamserver.cpp. |
|
|
Starts listening on the specified interface and port.
Definition at line 39 of file socks5bytestreamserver.cpp. |
|
|
Call this function repeatedly to check for incoming connections and to negotiate them.
Definition at line 47 of file socks5bytestreamserver.cpp. |
|
|
Stops listening and unbinds from the interface and port. Definition at line 80 of file socks5bytestreamserver.cpp. |
1.4.1