rust/hedgewars-server/src/utils.rs
changeset 14784 f43ab2bd76ae
parent 14462 98ef2913ec73
child 14786 01f8ab45f806
--- a/rust/hedgewars-server/src/utils.rs	Tue Apr 09 00:45:14 2019 +0200
+++ b/rust/hedgewars-server/src/utils.rs	Tue Apr 09 21:08:35 2019 +0300
@@ -3,7 +3,8 @@
 use std::iter::Iterator;
 
 pub const PROTOCOL_VERSION: u32 = 3;
-pub const SERVER: mio::Token = mio::Token(1_000_000_000);
+pub const SERVER_TOKEN: mio::Token = mio::Token(1_000_000_000);
+pub const IO_TOKEN: mio::Token = mio::Token(1_000_000_001);
 
 pub fn is_name_illegal(name: &str) -> bool {
     name.len() > 40