Esempio n. 1
0
 private static void ensureCacheExists()
 {
     if (cache == null)
     {
         cache = new TempDictionary<MACAddress>();
     }
 }
Esempio n. 2
0
 /// <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>();
     }
 }
Esempio n. 3
0
        /// <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();
        }
Esempio n. 4
0
 static DNSClient()
 {
     clients = new TempDictionary <DNSClient>();
 }
Esempio n. 5
0
 static UdpClient()
 {
     clients = new TempDictionary <UdpClient>();
 }
Esempio n. 6
0
 static TCPClient()
 {
     clients = new TempDictionary <TCPClient>();
 }
Esempio n. 7
0
 static UdpClient()
 {
     clients = new TempDictionary<UdpClient>();
 }