diff options
| author | Eskil Queseth <eskilq@kth.se> | 2020-10-31 02:27:26 +0100 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2020-10-31 02:27:26 +0100 |
| commit | 11c823701b12f10933b40044a12cc4048ccf8bd2 (patch) | |
| tree | b3d0b6c844383f8a45cd5081459928b75136ab95 /mumlib/src/command.rs | |
| parent | 8fb4edd72dfcb2b71e91eedc5861360101374967 (diff) | |
| download | mum-11c823701b12f10933b40044a12cc4048ccf8bd2.tar.gz | |
add support for mumctl server list
Diffstat (limited to 'mumlib/src/command.rs')
| -rw-r--r-- | mumlib/src/command.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mumlib/src/command.rs b/mumlib/src/command.rs index e404056..26071ac 100644 --- a/mumlib/src/command.rs +++ b/mumlib/src/command.rs @@ -18,6 +18,10 @@ pub enum Command { }, ServerDisconnect, Status, + ServerStatus { + host: String, + port: u16, + }, } #[derive(Debug, Deserialize, Serialize)] @@ -25,4 +29,10 @@ pub enum CommandResponse { ChannelList { channels: Channel }, ServerConnect { welcome_message: Option<String> }, Status { server_state: Server }, + ServerStatus { + version: u32, + users: u32, + max_users: u32, + bandwidth: u32, + }, } |
