]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/include/plaqui/server/tcpserver.h
Se agregan un par de mutex porque el server se muere con segmentation fault
[z.facultad/75.42/plaqui.git] / Server / include / plaqui / server / tcpserver.h
index b37984428858668a09da3b2a4a7c0486496d0280..02906290f6cfd601fb95e4d8f03b3e1c50d3057e 100644 (file)
 #ifndef PLAQUI_TCPSERVER_H
 #define PLAQUI_TCPSERVER_H
 
-#include "plaqui/server/controlserver.h"
-#include "plaqui/server/transmitter.h"
+#include "plaqui/server/runnable.h"
+#include "plaqui/server/connection.h"
 #include <socket++/sockinet.h>
-#include <string>
 #include <list>
 
 namespace PlaQui {
@@ -48,8 +47,11 @@ namespace Server {
 
                private:
 
+                       /// Cantidad máxima de conexiones pendientes.
+                       static const unsigned MAX_PENDING_CONNECTIONS;
+
                        /// Lista de conexiones de control.
-                       typedef std::list<Connnection*> ConnectionList;
+                       typedef std::list<Connection*> ConnectionList;
 
                // Atributos.
 
@@ -86,7 +88,7 @@ namespace Server {
                        /**
                         * Destructor.
                         */
-                       virtual ~TCPServer(void) {}
+                       virtual ~TCPServer(void);
 
                        /**
                         * Constructor.