blob: 04c8c3875a4ab5d472ce527801932c8df918bf7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Hazel
{
/// <summary>
/// Represents the IP version that a connection or listener will use.
/// </summary>
/// <remarks>
/// If you wand a client to connect or be able to connect using IPv6 then you should use <see cref="IPv4AndIPv6"/>,
/// 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.
/// </remarks>
public enum IPMode
{
/// <summary>
/// Instruction to use IPv4 only, IPv6 connections will not be able to connect.
/// </summary>
IPv4,
/// <summary>
/// Instruction to use IPv6 only, IPv4 connections will not be able to connect. IPv4 addresses can be connected
/// by converting to IPv6 addresses.
/// </summary>
IPv6
}
}
|