private static void ensureCacheExists() { if (cache == null) { cache = new TempDictionary<MACAddress>(); } }
/// <summary> /// Ensure cache exists. /// </summary> /// <exception cref="ArgumentOutOfRangeException">Thrown on fatal error (contact support).</exception> private static void ensureCacheExists() { if (cache == null) { cache = new TempDictionary <MACAddress>(); } }
/// <summary> /// Initialize the Network Stack to prepare it for operation /// </summary> internal static void Init() { AddressMap = new TempDictionary<NetworkDevice>(); // VMT Scanner issue workaround Cosmos.System.Network.ARP.ARPPacket.VMTInclude(); //Cosmos.System.Network.IPv4.ARPPacket_Ethernet.VMTInclude(); Cosmos.System.Network.IPv4.ARPReply_Ethernet.VMTInclude(); Cosmos.System.Network.IPv4.ARPRequest_Ethernet.VMTInclude(); Cosmos.System.Network.IPv4.ICMPPacket.VMTInclude(); Cosmos.System.Network.IPv4.ICMPEchoReply.VMTInclude(); Cosmos.System.Network.IPv4.ICMPEchoRequest.VMTInclude(); Cosmos.System.Network.IPv4.UDPPacket.VMTInclude(); }
static DNSClient() { clients = new TempDictionary <DNSClient>(); }
static UdpClient() { clients = new TempDictionary <UdpClient>(); }
static TCPClient() { clients = new TempDictionary <TCPClient>(); }
static UdpClient() { clients = new TempDictionary<UdpClient>(); }