mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-15 09:11:55 +00:00
43a20ad0c5
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@26 67975925-1194-0748-b3d5-c16f83f1a3a1
26 lines
No EOL
607 B
C++
26 lines
No EOL
607 B
C++
#ifndef AVHNEXUSTUNNELTOSERVER_H
|
|
#define AVHNEXUSTUNNELTOSERVER_H
|
|
|
|
#include <queue>
|
|
|
|
namespace AvHNexus
|
|
{
|
|
class TunnelToServer : public Nexus::TunnelToServer
|
|
{
|
|
public:
|
|
static TunnelToServer* getInstance(void);
|
|
virtual ~TunnelToServer(void);
|
|
|
|
virtual Nexus::TunnelToServer* clone(void) const;
|
|
virtual bool send(const byte_string& data);
|
|
virtual bool recv(byte_string& data);
|
|
|
|
virtual bool insertMessage(const byte_string& message); //inserted into queue of messages from server
|
|
|
|
private:
|
|
TunnelToServer(void);
|
|
std::deque<const byte_string> messages;
|
|
};
|
|
}
|
|
|
|
#endif |