aboutsummaryrefslogtreecommitdiff
path: root/games/rstnode/rst-server/src/net/parser.rs
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2021-02-11 20:29:42 +0100
committerKatharina Fey <kookie@spacekookie.de>2021-02-11 20:29:42 +0100
commit5dab336049dbc6817e9ff212998690f59f6bbfa8 (patch)
tree2a87939d5ebde379524c2b8f3ec27b920e82c97b /games/rstnode/rst-server/src/net/parser.rs
parent6e8e37406d16a09e4cfbe77bfba3a8d64279e473 (diff)
rstnode: add network packet envelope to wire types
Diffstat (limited to 'games/rstnode/rst-server/src/net/parser.rs')
-rw-r--r--games/rstnode/rst-server/src/net/parser.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/games/rstnode/rst-server/src/net/parser.rs b/games/rstnode/rst-server/src/net/parser.rs
new file mode 100644
index 000000000000..d320e13095bb
--- /dev/null
+++ b/games/rstnode/rst-server/src/net/parser.rs
@@ -0,0 +1,9 @@
+use rst_core::wire::Request;
+
+pub async fn request(req: Request) {
+ use Request::*;
+ match req {
+ Register(name, pw) => {},
+ _ => todo!(),
+ }
+}