gameServer2/src/server/actions.rs
author unc0rr
Wed, 18 Jan 2017 22:15:55 +0300
changeset 12139 f3121d7dedec
parent 12138 e0bf51609062
child 12141 78925eff02c2
permissions -rw-r--r--
- Handle errors - Client removal routine - Handle QUIT message
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12138
e0bf51609062 Introduce actions, just like in the old server
unc0rr
parents:
diff changeset
     1
use protocol::messages::HWProtocolMessage;
e0bf51609062 Introduce actions, just like in the old server
unc0rr
parents:
diff changeset
     2
e0bf51609062 Introduce actions, just like in the old server
unc0rr
parents:
diff changeset
     3
pub enum Action {
e0bf51609062 Introduce actions, just like in the old server
unc0rr
parents:
diff changeset
     4
    SendMe(String),
12139
f3121d7dedec - Handle errors
unc0rr
parents: 12138
diff changeset
     5
    RemoveClient,
f3121d7dedec - Handle errors
unc0rr
parents: 12138
diff changeset
     6
    ByeClient(String),
12138
e0bf51609062 Introduce actions, just like in the old server
unc0rr
parents:
diff changeset
     7
}