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