gameServer2/src/server/client.rs
changeset 12857 bd35cb2302b3
parent 12152 03ccb89820f3
child 12858 a9d105dc5c95
--- a/gameServer2/src/server/client.rs	Tue Dec 05 11:36:29 2017 -0500
+++ b/gameServer2/src/server/client.rs	Wed Dec 06 23:46:17 2017 +0100
@@ -1,4 +1,4 @@
-use mio::tcp::*;
+use mio::net::TcpStream;
 use mio::*;
 use std::io::Write;
 use std::io;
@@ -15,8 +15,8 @@
     decoder: ProtocolDecoder,
     buf_out: netbuf::Buf,
 
-    pub id: Token,
-    pub room_id: Option<Token>,
+    pub id: usize,
+    pub room_id: Option<usize>,
     pub nick: String,
     pub protocol_number: u32,
     pub is_master: bool,
@@ -31,7 +31,7 @@
             decoder: ProtocolDecoder::new(),
             buf_out: netbuf::Buf::new(),
             room_id: None,
-            id: Token(0),
+            id: 0,
 
             nick: String::new(),
             protocol_number: 0,