1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
9 #ifndef anna_diameter_comm_ServerSocket_hpp
10 #define anna_diameter_comm_ServerSocket_hpp
13 #include <anna/comm/ServerSocket.hpp>
14 #include <anna/core/RuntimeException.hpp>
19 #include <anna/config/defines.hpp>
42 Diameter server socket
44 class ServerSocket : public anna::comm::ServerSocket {
46 LocalServer * a_localServer;
48 virtual bool eventAcceptConnection(const anna::comm::ClientSocket &clientSocket) throw(anna::RuntimeException);
56 @param localAddress Listen address
57 @param localServer Local access point
58 @param engine Diameter comm engine
60 ServerSocket(const anna::comm::INetAddress &localAddress, LocalServer *localServer);
64 // ~ServerSocket() { detach(); } // detaching avoids bad file descriptor at poll when application destroy diameter ServerSockets
67 //friend class LocalServer;