rust/hedgewars-server/src/handlers/checker.rs
author alfadur
Thu, 27 Jan 2022 03:51:13 +0300
changeset 15828 44b49f255e31
parent 15804 747278149393
child 15831 7d0f747afcb8
permissions -rw-r--r--
add type safe power of two sizes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15120
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     1
use log::*;
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     2
use mio;
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     3
15804
747278149393 Extract network protocol into a separate crate
unc0rr
parents: 15120
diff changeset
     4
use crate::core::{server::HwServer, types::ClientId};
747278149393 Extract network protocol into a separate crate
unc0rr
parents: 15120
diff changeset
     5
use hedgewars_network_protocol::messages::HwProtocolMessage;
15120
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     6
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     7
pub fn handle(_server: &mut HwServer, _client_id: ClientId, message: HwProtocolMessage) {
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     8
    match message {
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     9
        _ => warn!("Unknown command"),
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
    10
    }
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
    11
}