コード例 #1
0
ファイル: ARPCache.cs プロジェクト: Orvid/Cosmos
 private static void ensureCacheExists()
 {
     if (cache == null)
     {
         cache = new TempDictionary<MACAddress>();
     }
 }
コード例 #2
0
ファイル: ARPCache.cs プロジェクト: yeliu802/Cosmos
 /// <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>();
     }
 }
コード例 #3
0
ファイル: NetworkStack.cs プロジェクト: iSalva/Cosmos
        /// <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();
        }
コード例 #4
0
 static DNSClient()
 {
     clients = new TempDictionary <DNSClient>();
 }
コード例 #5
0
 static UdpClient()
 {
     clients = new TempDictionary <UdpClient>();
 }
コード例 #6
0
ファイル: TCPClient.cs プロジェクト: carcarjg/Uszka
 static TCPClient()
 {
     clients = new TempDictionary <TCPClient>();
 }
コード例 #7
0
ファイル: UdpClient.cs プロジェクト: Orvid/Cosmos
 static UdpClient()
 {
     clients = new TempDictionary<UdpClient>();
 }