gameServer2/src/server/handlers/checker.rs
author alfadur
Thu, 04 Oct 2018 13:26:48 -0400
changeset 13859 ff468792298a
parent 13829 54725a1d1db8
child 14395 e5db279308d7
permissions -rw-r--r--
merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13771
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     1
use mio;
13829
54725a1d1db8 make it build
nemo
parents: 13771
diff changeset
     2
use log::*;
13771
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     3
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     4
use crate::{
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     5
    server::{
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     6
        server::HWServer,
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     7
        coretypes::ClientId,
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     8
    },
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     9
    protocol::messages::{
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    10
        HWProtocolMessage
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    11
    },
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    12
};
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    13
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    14
pub fn handle(server: & mut HWServer, client_id: ClientId, message: HWProtocolMessage) {
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    15
    match message {
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    16
        _ => warn!("Unknown command"),
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    17
    }
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    18
}