Esempio n. 1
0
 public TcpClient(Stack.NetClient client) : base(client)
 {
     _rnd     = new Random();
     Sessions = new List <TcpSession>();
     for (ushort x = 0; x < ushort.MaxValue; x++)
     {
         Sessions.Add(new TcpSession(this, client.Configuration.IpAddress, x));
     }
 }
Esempio n. 2
0
        public ArpClient(Stack.NetClient client) : base(client)
        {
            ArpCache       = new ConcurrentDictionary <string, ArpCacheEntry>();
            ExpirationTime = TimeSpan.FromHours(1);

            // Setup default settings
            AcceptGratuitousReplies = true;
            UpdateUnexpiredEntries  = true;
            ExtendExpirationTime    = true;
            DisableCache            = false;
        }
Esempio n. 3
0
 public Protocol(Stack.NetClient client)
 {
     _client = client;
 }
Esempio n. 4
0
 public Layer4Protocol(Stack.NetClient client) : base(client)
 {
 }
Esempio n. 5
0
 public DnsClient(Stack.NetClient client) : base(client)
 {
     DnsCache        = new ConcurrentDictionary <string, DnsEntry>();
     PendingRequests = new List <string>();
 }
Esempio n. 6
0
 public IcmpClient(Stack.NetClient client) : base(client)
 {
     CurrentPings = new Dictionary <ushort, PingRequest>();
 }
Esempio n. 7
0
 public HttpClient(Stack.NetClient client)
 {
     Client = client;
 }