#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 {
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.
/// Socket para escuchar conexiones.
sockinetbuf socket;
+ /// Mutex para las conexiones.
+ Glib::Mutex connections_mutex;
+
/// Conexiones de control.
ConnectionList connections;
/**
* Destructor.
*/
- virtual ~TCPServer(void) {}
+ virtual ~TCPServer(void);
/**
* Constructor.