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_ServerSessionReceiver_hpp
10 #define anna_diameter_comm_ServerSessionReceiver_hpp
12 #include <anna/comm/Receiver.hpp>
13 #include <anna/core/RuntimeException.hpp>
35 class ServerSessionReceiver : public anna::comm::Receiver {
37 static const char* className() throw() { return "diameter.comm.ServerSessionReceiver"; }
38 void setReference(ServerSession *s) throw() { a_session = s; }
40 // base class virtuals
41 void eventBreakLocalConnection(const anna::comm::ClientSocket&cli) throw();
42 //void eventCreateConnection(const anna::comm::Server*srv) throw();
45 ServerSessionReceiver() : anna::comm::Receiver("diameter.comm.ServerSessionReceiver") { a_session = NULL; }
46 void initialize() throw(anna::RuntimeException) {;}
47 void apply(anna::comm::ClientSocket&, const anna::comm::Message&) throw(anna::RuntimeException);
50 anna::diameter::comm::ServerSession *a_session;
52 friend class anna::Allocator <ServerSessionReceiver>;