OSDN Git Service

チャンネル機能を仮実装
[mmo/main.git] / common / network / Session.hpp
index 0667da1..9888c96 100644 (file)
@@ -60,6 +60,9 @@ namespace network {
             void set_id(UserID id);\r
             bool online() const;\r
 \r
+                       unsigned char channel() const;\r
+                       void set_channel(unsigned char channel);\r
+\r
             std::string global_ip() const;\r
             uint16_t udp_port() const;\r
             void set_global_ip(const std::string& global_ip);\r
@@ -118,6 +121,7 @@ namespace network {
                        int write_average_limit_;\r
 \r
             UserID id_;\r
+                       unsigned char channel_;\r
     };\r
 \r
 }\r