Fix local server for multiple applications
[anna.git] / include / anna / diameter.comm / Server.hpp
index 711fdcd..514ce39 100644 (file)
@@ -45,6 +45,7 @@ class Entity;
 class ClientSession;
 class Response;
 class Message;
+class OriginHost;
 
 
 /**
@@ -297,7 +298,7 @@ protected:
 
      \param response Answer container object for corresponding diameter request
   */
-  virtual void eventResponse(const Response & response) noexcept(false);
+  virtual void eventResponse(const Response & response, const anna::diameter::comm::OriginHost *myNode) noexcept(false);
 
   /**
      Handler for diameter server (client-session) requests
@@ -305,8 +306,7 @@ protected:
      \param clientSession ClientSession from which request has been received
      \param request Diameter request message received
   */
-  virtual void eventRequest(ClientSession *clientSession, const anna::DataBlock &request) noexcept(false);
-  //virtual void eventRequest(ClientSession *clientSession, const Message & request) noexcept(false);
+  virtual void eventRequest(ClientSession *clientSession, const anna::DataBlock &request, const anna::diameter::comm::OriginHost *myNode) noexcept(false);
 
   /**
      Handler for diameter server (client-session) responses out of context
@@ -314,7 +314,7 @@ protected:
      \param clientSession ClientSession from which request has been received
      \param response Answer data block object without context match
   */
-  virtual void eventUnknownResponse(ClientSession *clientSession, const anna::DataBlock& response) noexcept(false);
+  virtual void eventUnknownResponse(ClientSession *clientSession, const anna::DataBlock& response, const anna::diameter::comm::OriginHost *myNode) noexcept(false);
 
   /**
      Handler for diameter server (client-session) Disconnect-Peer-Answer messages
@@ -322,7 +322,7 @@ protected:
      \param clientSession ClientSession from which request has been received
      \param response Answer data block object without context match
   */
-  virtual void eventDPA(ClientSession *clientSession, const anna::DataBlock& response) noexcept(false);
+  virtual void eventDPA(ClientSession *clientSession, const anna::DataBlock& response, const anna::diameter::comm::OriginHost *myNode) noexcept(false);