aboutsummaryrefslogtreecommitdiff
path: root/Tools/Hazel-Networking/Hazel/ConnectionState.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Hazel-Networking/Hazel/ConnectionState.cs')
-rw-r--r--Tools/Hazel-Networking/Hazel/ConnectionState.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/Tools/Hazel-Networking/Hazel/ConnectionState.cs b/Tools/Hazel-Networking/Hazel/ConnectionState.cs
new file mode 100644
index 0000000..5d3f5c9
--- /dev/null
+++ b/Tools/Hazel-Networking/Hazel/ConnectionState.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Hazel
+{
+ /// <summary>
+ /// Represents the state a <see cref="Connection"/> is currently in.
+ /// </summary>
+ public enum ConnectionState
+ {
+ /// <summary>
+ /// The Connection has either not been established yet or has been disconnected.
+ /// </summary>
+ NotConnected,
+
+ /// <summary>
+ /// The Connection is currently connecting to an endpoint.
+ /// </summary>
+ Connecting,
+
+ /// <summary>
+ /// The Connection is connected and data can be transfered.
+ /// </summary>
+ Connected,
+ }
+}