libt2n: (gerd) small improvements, resolve doxygen conflicts
[libt2n] / src / server.hxx
index 3d28584..c93e43b 100644 (file)
@@ -26,6 +26,9 @@
 namespace libt2n
 {
 
+/**
+    Basic connection class
+*/
 class connection
 {
     private:
@@ -63,6 +66,9 @@ class connection
         virtual void write(const std::string& data)=0;
 };
 
+/**
+    Basic server class
+*/
 class server
 {
     public:
@@ -84,11 +90,15 @@ class server
             next_id=0;
         }
 
+        int add_connection(connection* newconn);
+
     public:
         virtual ~server();
 
         void set_default_timeout(int _default_timeout)
             { default_timeout=_default_timeout; }
+        int get_default_timeout(void)
+            { return default_timeout; }
 
         void set_logging(std::ostream *_logstream, log_level_values _log_level)
         {
@@ -103,7 +113,11 @@ class server
 
         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);
 };