SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ChatServer_server.hpp
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2018 SEGS Team (see Authors.txt)
5  * This software is licensed! (See License.txt for details)
6  */
7 
8 #ifndef MPRPC_ChatServer_server_7c6c320b_HPP__
9 #define MPRPC_ChatServer_server_7c6c320b_HPP__
10 
11 #include "ChatServer.hpp"
12 
13 namespace StickWorld {
14 
15 namespace ChatServer {
16 
17 
18 class server : public msgpack::rpc::server::base {
19 public:
20  server(msgpack::rpc::loop lo = msgpack::rpc::loop()) :
21  msgpack::rpc::server::base(lo) { }
22 
23  ~server() { }
24 
25  void dispatch(msgpack::rpc::request req);
26 
27 private:
28  class dispatch_table {
29  public:
31  ~dispatch_table();
32  void* pimpl;
33  };
34 
35  static dispatch_table s_dispatch_table;
36  friend class dispatch_table;
37 
38 public:
39  void subscribe(msgpack::rpc::request::type<void>, ChatServer::subscribe&);
40  void publish(msgpack::rpc::request::type<void>, ChatServer::publish&);
41  void unsubscribe(msgpack::rpc::request::type<void>, ChatServer::unsubscribe&);
42 };
43 
44 
45 } // namespace ChatServer
46 
47 
48 /*
49 void ChatServer::server::subscribe(msgpack::rpc::request::type<void> req, ChatServer::subscribe& params)
50 void ChatServer::server::publish(msgpack::rpc::request::type<void> req, ChatServer::publish& params)
51 void ChatServer::server::unsubscribe(msgpack::rpc::request::type<void> req, ChatServer::unsubscribe& params)
52 */
53 
54 
55 } // namespace StickWorld
56 #endif
friend class dispatch_table
Definition: ChatServer_server.hpp:36
Definition: ChatServer.hpp:18
Definition: ChatServer.hpp:53
Definition: ChatServer.hpp:86
void subscribe(msgpack::rpc::request::type< void >, ChatServer::subscribe &)
~server()
Definition: ChatServer_server.hpp:23
Definition: stickworld_server.idl:10
void dispatch(msgpack::rpc::request req)
Definition: ChatServer.cpp:59
server(msgpack::rpc::loop lo=msgpack::rpc::loop())
Definition: ChatServer_server.hpp:20
void unsubscribe(msgpack::rpc::request::type< void >, ChatServer::unsubscribe &)
Definition: ChatServer_server.hpp:18
void publish(msgpack::rpc::request::type< void >, ChatServer::publish &)