summaryrefslogtreecommitdiff
path: root/crates/utils/tcp_connection/src/handle.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/utils/tcp_connection/src/handle.rs')
-rw-r--r--crates/utils/tcp_connection/src/handle.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/crates/utils/tcp_connection/src/handle.rs b/crates/utils/tcp_connection/src/handle.rs
new file mode 100644
index 0000000..de7815d
--- /dev/null
+++ b/crates/utils/tcp_connection/src/handle.rs
@@ -0,0 +1,12 @@
+use tokio::net::TcpStream;
+
+pub trait ClientHandle<RequestServer> {
+
+ fn process(stream: TcpStream);
+}
+
+pub trait ServerHandle<RequestClient> {
+
+ fn process(stream: TcpStream);
+}
+