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