Example #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));
     }
 }
Example #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;
        }
Example #3
0
 public Protocol(Stack.NetClient client)
 {
     _client = client;
 }
Example #4
0
 public Layer4Protocol(Stack.NetClient client) : base(client)
 {
 }
Example #5
0
 public DnsClient(Stack.NetClient client) : base(client)
 {
     DnsCache        = new ConcurrentDictionary <string, DnsEntry>();
     PendingRequests = new List <string>();
 }
Example #6
0
 public IcmpClient(Stack.NetClient client) : base(client)
 {
     CurrentPings = new Dictionary <ushort, PingRequest>();
 }
Example #7
0
 public HttpClient(Stack.NetClient client)
 {
     Client = client;
 }