14 #ifndef SOCKS5BYTESTREAMSERVER_H__
15 #define SOCKS5BYTESTREAMSERVER_H__
18 #include "connectionhandler.h"
25 class ConnectionTCPServer;
77 virtual void handleIncomingConnection(
ConnectionBase* connection );
80 virtual void handleReceivedData(
const ConnectionBase* connection,
const std::string& data );
90 void registerHash(
const std::string& hash );
91 void removeHash(
const std::string& hash );
98 StateAuthmethodAccepted,
100 StateDestinationAccepted,
104 struct ConnectionInfo
106 NegotiationState state;
110 typedef std::map<ConnectionBase*, ConnectionInfo> ConnectionMap;
111 ConnectionMap m_connections;
113 typedef std::list<const ConnectionBase*> ConnectionList;
114 ConnectionList m_oldConnections;
116 typedef std::list<std::string> HashMap;
130 #endif // SOCKS5BYTESTREAMSERVER_H__