rust/hedgewars-server/src/handlers/checker.rs
author unc0rr
Wed, 23 Jun 2021 23:41:51 +0200
changeset 15804 747278149393
parent 15120 febccab419b1
child 15831 7d0f747afcb8
permissions -rw-r--r--
Extract network protocol into a separate crate
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
}