rust/hedgewars-server/src/handlers/checker.rs
author sheepluva
Tue, 22 Jun 2021 22:13:55 +0200
changeset 15802 d5c37e78ab83
parent 15120 febccab419b1
child 15804 747278149393
permissions -rw-r--r--
hedgewars-engine (rust): fix "protocol_version" -> "hedgewars_engine_protocol_version" That function/symbol was renamed in ef2fc0210362
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
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     4
use crate::{
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     5
    core::{server::HwServer, types::ClientId},
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     6
    protocol::messages::HwProtocolMessage,
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     7
};
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     8
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
     9
pub fn handle(_server: &mut HwServer, _client_id: ClientId, message: HwProtocolMessage) {
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
    10
    match message {
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
    11
        _ => warn!("Unknown command"),
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
    12
    }
febccab419b1 Apply dos2unix to rust sources
unc0rr
parents: 15075
diff changeset
    13
}