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__