Samchon Framework for CPP  1.0.0
WebClientDriver.hpp
1 #pragma once
2 #include <samchon/API.hpp>
3 
4 #include <samchon/protocol/ClientDriver.hpp>
5 #include <samchon/protocol/WebCommunicator.hpp>
6 
7 namespace samchon
8 {
9 namespace protocol
10 {
11  class WebServer;
12 
47  : public ClientDriver,
48  public WebCommunicator
49  {
50  friend class WebServer;
51 
52  private:
53  typedef ClientDriver super;
54 
55  std::string session_id;
56  std::string path;
57 
58  public:
59  WebClientDriver(std::shared_ptr<boost::asio::ip::tcp::socket> socket)
60  : super(socket),
61  WebCommunicator(true)
62  {
63  };
64 
65  virtual ~WebClientDriver() = default;
66 
70  auto getSessionID() const -> std::string
71  {
72  return session_id;
73  };
74 
78  auto getPath() const -> std::string
79  {
80  return path;
81  };
82  };
83 };
84 };
auto getSessionID() const -> std::string
auto getPath() const -> std::string