14 #ifndef SOCKS5BYTESTREAMSERVER_H__
15 #define SOCKS5BYTESTREAMSERVER_H__
18 #include "connectionhandler.h"
19 #include "connectiontcpserver.h"
65 void removeServerImpl();
92 int localPort()
const;
99 const std::string localInterface()
const;
111 virtual void handleReceivedData(
const ConnectionBase* connection,
const std::string& data );
121 void registerHash(
const std::string& hash );
122 void removeHash(
const std::string& hash );
125 enum NegotiationState
129 StateAuthmethodAccepted,
131 StateDestinationAccepted,
135 struct ConnectionInfo
137 NegotiationState state;
141 typedef std::map<ConnectionBase*, ConnectionInfo> ConnectionMap;
142 ConnectionMap m_connections;
144 typedef std::list<const ConnectionBase*> ConnectionList;
145 ConnectionList m_oldConnections;
147 typedef std::list<std::string> HashMap;
150 ConnectionBase* m_server;
153 const LogSink& m_logInstance;
161 #endif // SOCKS5BYTESTREAMSERVER_H__