From e9ea621b93fbb58d9edfca8375918791637bbd52 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 30 Dec 2020 20:59:04 +0800 Subject: +init --- .../src/Impostor.Hazel/Udp/SendOptionInternal.cs | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Impostor-dev/src/Impostor.Hazel/Udp/SendOptionInternal.cs (limited to 'Impostor-dev/src/Impostor.Hazel/Udp/SendOptionInternal.cs') diff --git a/Impostor-dev/src/Impostor.Hazel/Udp/SendOptionInternal.cs b/Impostor-dev/src/Impostor.Hazel/Udp/SendOptionInternal.cs new file mode 100644 index 0000000..c0c4e21 --- /dev/null +++ b/Impostor-dev/src/Impostor.Hazel/Udp/SendOptionInternal.cs @@ -0,0 +1,33 @@ +namespace Impostor.Hazel.Udp +{ + /// + /// Extra internal states for SendOption enumeration when using UDP. + /// + public enum UdpSendOption : byte + { + /// + /// Hello message for initiating communication. + /// + Hello = 8, + + /// + /// A single byte of continued existence + /// + Ping = 12, + + /// + /// Message for discontinuing communication. + /// + Disconnect = 9, + + /// + /// Message acknowledging the receipt of a message. + /// + Acknowledgement = 10, + + /// + /// Message that is part of a larger, fragmented message. + /// + Fragment = 11, + } +} -- cgit v1.1-26-g67d0