rust/hedgewars-server/src/handlers/checker.rs
author alfadur
Tue, 01 Feb 2022 02:23:35 +0300
changeset 15831 7d0f747afcb8
parent 15804 747278149393
child 15848 3d05bada4799
permissions -rw-r--r--
move server network to tokio
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
15804
747278149393 Extract network protocol into a separate crate
unc0rr
parents: 15120
diff changeset
     3
use crate::core::{server::HwServer, types::ClientId};
747278149393 Extract network protocol into a separate crate
unc0rr
parents: 15120
diff changeset
     4
use hedgewars_network_protocol::messages::HwProtocolMessage;
15120
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     5
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     6
pub fn handle(_server: &mut HwServer, _client_id: ClientId, message: HwProtocolMessage) {
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     7
    match message {
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     8
        _ => warn!("Unknown command"),
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     9
    }
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
    10
}