namespace libt2n
{
+/**
+ Basic connection class
+*/
class connection
{
private:
virtual void write(const std::string& data)=0;
};
+/**
+ Basic server class
+*/
class server
{
public:
bool get_packet(std::string& data, unsigned int& conn_id);
+ void fill_connection_buffers(void);
+
protected:
+ void log(log_level_values level, const std::string& message)
+ { log(level,message.c_str()); }
void log(log_level_values level, const char* message);
};