14 #ifndef SOCKS5BYTESTREAMSERVER_H__
15 #define SOCKS5BYTESTREAMSERVER_H__
18 #include "connectionhandler.h"
19 #include "connectiontcpserver.h"
80 int localPort()
const;
87 const std::string localInterface()
const;
99 virtual void handleReceivedData(
const ConnectionBase* connection,
const std::string& data );
109 void registerHash(
const std::string& hash );
110 void removeHash(
const std::string& hash );
113 enum NegotiationState
117 StateAuthmethodAccepted,
119 StateDestinationAccepted,
123 struct ConnectionInfo
125 NegotiationState state;
129 typedef std::map<ConnectionBase*, ConnectionInfo> ConnectionMap;
130 ConnectionMap m_connections;
132 typedef std::list<const ConnectionBase*> ConnectionList;
133 ConnectionList m_oldConnections;
135 typedef std::list<std::string> HashMap;
138 ConnectionTCPServer* m_tcpServer;
141 const LogSink& m_logInstance;
149 #endif // SOCKS5BYTESTREAMSERVER_H__