aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/network
diff options
context:
space:
mode:
authorEskil <eskilq@kth.se>2020-10-16 02:36:13 +0200
committerEskil <eskilq@kth.se>2020-10-16 02:36:13 +0200
commit27d8b16b40a5f5a0633c2e54640999d4e6cdd9a3 (patch)
tree769971b8921aa2c0d5c2845323a898f1603cfebe /mumd/src/network
parent18a3c0b3cf8254b70857e31ddd2b6213b10db156 (diff)
parentd15a4adb457b8caab4e76baff8e27ade347a275d (diff)
downloadmum-27d8b16b40a5f5a0633c2e54640999d4e6cdd9a3.tar.gz
Merge branch 'error-handling' into 'main'
Error handling Closes #13 See merge request gustav/mum!3
Diffstat (limited to 'mumd/src/network')
-rw-r--r--mumd/src/network/mod.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/mumd/src/network/mod.rs b/mumd/src/network/mod.rs
deleted file mode 100644
index 1a31ee2..0000000
--- a/mumd/src/network/mod.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-pub mod tcp;
-pub mod udp;
-
-use std::net::SocketAddr;
-
-#[derive(Clone, Debug)]
-pub struct ConnectionInfo {
- socket_addr: SocketAddr,
- hostname: String,
- accept_invalid_cert: bool,
-}
-
-impl ConnectionInfo {
- pub fn new(socket_addr: SocketAddr, hostname: String, accept_invalid_cert: bool) -> Self {
- Self {
- socket_addr,
- hostname,
- accept_invalid_cert,
- }
- }
-}