summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2017-03-31 10:36:23 +0530
committerTom Joseph <tomjoseph@in.ibm.com>2017-04-25 12:12:02 +0530
commitf846fb33d31794b042b5d1fe4c19dd60cc9b2c04 (patch)
tree2ecfeab3fec38b8b4c1037f7746096984f2b5c45
parent092f3265133baffa911353e408405bf7ef4a5f43 (diff)
downloadphosphor-net-ipmid-f846fb33d31794b042b5d1fe4c19dd60cc9b2c04.tar.gz
phosphor-net-ipmid-f846fb33d31794b042b5d1fe4c19dd60cc9b2c04.zip
Modify constructor for message handler class.
Change-Id: I5ab63b4a20654a69074a692daec85b234497bb5a Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
-rw-r--r--message_handler.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/message_handler.hpp b/message_handler.hpp
index 7ca7c3d..5ab8535 100644
--- a/message_handler.hpp
+++ b/message_handler.hpp
@@ -2,10 +2,10 @@
#include <iostream>
#include <numeric>
-
#include "message.hpp"
#include "message_parsers.hpp"
#include "session.hpp"
+#include "sol/console_buffer.hpp"
namespace message
{
@@ -13,9 +13,11 @@ namespace message
class Handler
{
public:
-
- explicit Handler(std::shared_ptr<udpsocket::Channel> inChannel):
- channel(inChannel) {}
+ explicit Handler(std::shared_ptr<udpsocket::Channel> channel,
+ uint32_t sessionID =
+ message::Message::MESSAGE_INVALID_SESSION_ID):
+ sessionID(sessionID),
+ channel(channel) {}
Handler() = delete;
~Handler() = default;
@@ -62,6 +64,7 @@ class Handler
// BMC Session ID for the Channel
session::SessionID sessionID;
+
private:
// Socket channel for communicating with the remote client
std::shared_ptr<udpsocket::Channel> channel;
OpenPOWER on IntegriCloud