From 8d2a2cd5de40e2b94ef5007c32832ed9a063dc40 Mon Sep 17 00:00:00 2001
From: chai <215380520@qq.com>
Date: Thu, 12 Oct 2023 22:09:49 +0800
Subject: +hazel-networking
---
.../Hazel/NewConnectionEventArgs.cs | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 Tools/Hazel-Networking/Hazel/NewConnectionEventArgs.cs
(limited to 'Tools/Hazel-Networking/Hazel/NewConnectionEventArgs.cs')
diff --git a/Tools/Hazel-Networking/Hazel/NewConnectionEventArgs.cs b/Tools/Hazel-Networking/Hazel/NewConnectionEventArgs.cs
new file mode 100644
index 0000000..c3fd62f
--- /dev/null
+++ b/Tools/Hazel-Networking/Hazel/NewConnectionEventArgs.cs
@@ -0,0 +1,22 @@
+namespace Hazel
+{
+ public struct NewConnectionEventArgs
+ {
+ ///
+ /// The data received from the client in the handshake.
+ /// You must not recycle this. If you need the message outside of a callback, you should copy it.
+ ///
+ public readonly MessageReader HandshakeData;
+
+ ///
+ /// The to the new client.
+ ///
+ public readonly Connection Connection;
+
+ public NewConnectionEventArgs(MessageReader handshakeData, Connection connection)
+ {
+ this.HandshakeData = handshakeData;
+ this.Connection = connection;
+ }
+ }
+}
--
cgit v1.1-26-g67d0