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 --- Tools/Hazel-Networking/Hazel/IPMode.cs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Tools/Hazel-Networking/Hazel/IPMode.cs (limited to 'Tools/Hazel-Networking/Hazel/IPMode.cs') diff --git a/Tools/Hazel-Networking/Hazel/IPMode.cs b/Tools/Hazel-Networking/Hazel/IPMode.cs new file mode 100644 index 0000000..04c8c38 --- /dev/null +++ b/Tools/Hazel-Networking/Hazel/IPMode.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + + +namespace Hazel +{ + /// + /// Represents the IP version that a connection or listener will use. + /// + /// + /// If you wand a client to connect or be able to connect using IPv6 then you should use , + /// this sets the underlying sockets to use IPv6 but still allow IPv4 sockets to connect for backwards compatability + /// and hence it is the default IPMode in most cases. + /// + public enum IPMode + { + /// + /// Instruction to use IPv4 only, IPv6 connections will not be able to connect. + /// + IPv4, + + /// + /// Instruction to use IPv6 only, IPv4 connections will not be able to connect. IPv4 addresses can be connected + /// by converting to IPv6 addresses. + /// + IPv6 + } +} -- cgit v1.1-26-g67d0