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_ClientSessionReceiver_hpp
10 #define anna_diameter_comm_ClientSessionReceiver_hpp
12 #include <anna/comm/Receiver.hpp>
13 #include <anna/core/RuntimeException.hpp>
35 class ClientSessionReceiver : public anna::comm::Receiver {
37 virtual ~ClientSessionReceiver() {;}
39 static const char* className() { return "diameter.comm.ClientSessionReceiver"; }
40 void setReference(ClientSession *s) { a_session = s; }
42 // base class virtuals
43 void eventBreakConnection(const anna::comm::ClientSocket&) ;
44 void eventCreateConnection(const anna::comm::Server*) ;
47 ClientSessionReceiver() : anna::comm::Receiver("diameter.comm.ClientSessionReceiver") { a_session = NULL; }
48 void initialize() noexcept(false) {;}
49 void apply(anna::comm::ClientSocket&, const anna::comm::Message&) noexcept(false);
52 anna::diameter::comm::ClientSession *a_session;
54 friend class anna::Allocator <ClientSessionReceiver>;