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_comm_handler_ServerSocket_hpp
10 #define anna_comm_handler_ServerSocket_hpp
12 #include <anna/comm/Handler.hpp>
19 class LocalConnection;
24 class ServerSocket : public Handler {
26 ServerSocket(Communicator* communicator) :
27 Handler(communicator, Handler::Type::ServerSocket, Support::None),
31 void setup(comm::ServerSocket* serverSocket) throw() { a_serverSocket = serverSocket; }
34 comm::ServerSocket* a_serverSocket;
36 void initialize() throw(RuntimeException) ;
37 void apply() throw(RuntimeException);
38 void breakAddress(const in_addr_t&) throw() ;
39 void finalize() throw();
41 std::string asString() const throw();
42 xml::Node* asXML(xml::Node*) const throw();