Samchon Framework for CPP  1.0.0
IWebServer.hpp
1 #pragma once
2 #include <samchon/API.hpp>
3 
4 #include <samchon/protocol/IServer.hpp>
5 
6 namespace samchon
7 {
8  namespace protocol
9  {
19  class SAMCHON_FRAMEWORK_API IWebServer
20  : public virtual IServer
21  {
22  protected:
23  typedef IServer super;
24 
25  public:
26  /* -----------------------------------------------------------------------
27  CONSTRUCTORS
28  ----------------------------------------------------------------------- */
32  IWebServer();
33  virtual ~IWebServer() = default;
34 
41  virtual void open() override;
42 
43  private:
44  /* -----------------------------------------------------------------------
45  HANDSHAKE OF WEB-SOCKET
46  ----------------------------------------------------------------------- */
47  auto handshake(Socket *socket) const -> bool;
48 
49  auto calculateCertificationKey(const std::string &) const -> std::string;
50  };
51  };
52 };
An interface of a physical server.
Definition: IServer.hpp:43
An interface for a physical server following web-socket.
Definition: IWebServer.hpp:19
Top level namespace of products built from samchon.
Definition: ByteArray.hpp:7