libt2n: (gerd) small improvements, resolve doxygen conflicts
[libt2n] / src / socket_server.hxx
index 93111da..6056136 100644 (file)
@@ -53,6 +53,7 @@ class socket_server : public server
             { return socket_type; }
 
         void fill_buffer(long long usec_timeout=-1);
+        void fill_connection_buffers();
 };
 
 /**
@@ -60,18 +61,19 @@ class socket_server : public server
 */
 class socket_connection : public connection
 {
+    friend class socket_server;
+
     private:
-        int socket;
+        static const int recv_buffer_size=2048;
+
+        int sock;
 
-        friend void socket_server::fill_buffer(long long usec_timeout);
-        socket_connection(int _socket, int _timeout);
+        socket_connection(int _sock, int _timeout);
 
     public:
 
         void close();
-
-        void fill_buffer(void);
-
+        void fill_buffer(fd_set &cur_fdset);
         void write(const std::string& data);
 };