14 #ifndef SOCKS5BYTESTREAMSERVER_H__
15 #define SOCKS5BYTESTREAMSERVER_H__
18 #include "connectionhandler.h"
25 class ConnectionTCPServer;
81 int localPort()
const;
88 const std::string localInterface()
const;
94 virtual void handleReceivedData(
const ConnectionBase* connection,
const std::string& data );
104 void registerHash(
const std::string& hash );
105 void removeHash(
const std::string& hash );
108 enum NegotiationState
112 StateAuthmethodAccepted,
114 StateDestinationAccepted,
118 struct ConnectionInfo
120 NegotiationState state;
124 typedef std::map<ConnectionBase*, ConnectionInfo> ConnectionMap;
125 ConnectionMap m_connections;
127 typedef std::list<const ConnectionBase*> ConnectionList;
128 ConnectionList m_oldConnections;
130 typedef std::list<std::string> HashMap;
144 #endif // SOCKS5BYTESTREAMSERVER_H__
An abstract base class for a connection.
This is an implementation of a simple listening TCP connection.
A server listening for SOCKS5 bytestreams.
A simple implementation of mutex as a wrapper around a pthread mutex or a win32 critical section...
An SOCKS5BytestreamManager dispatches SOCKS5 Bytestreams.
This is an abstract base class to receive events from a ConnectionBase-derived object.
This is an abstract base class to receive incoming connection attempts. Do not confuse this with Conn...
An implementation of log sink and source.
const std::string EmptyString