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_internal_RemoteConnection_hpp
10 #define anna_comm_internal_RemoteConnection_hpp
23 class RemoteConnection {
25 Server* getServer() throw() { return a_server; }
28 Conversor de invocacion.
29 \return La instancia del socket asociado a esta instancia. Si no hay socket asociado lanzara una excepcion.
31 ClientSocket* getClientSocket() throw() { return a_clientSocket; }
33 std::string asString() const throw();
34 xml::Node* asXML(xml::Node* parent) const throw(RuntimeException);
35 static const char* className() throw() { return "anna::comm::RemoteConnection"; }
39 ClientSocket* a_clientSocket;
41 RemoteConnection(Server* server, ClientSocket* clientSocket) :
43 a_clientSocket(clientSocket)