Esempio n. 1
0
 public Host(EventQueueProcessor eqp, IP ip)
     : base(eqp, ip)
 {
     this.hStat.host_name = ip;
     this.hStat.flows = new FlowStatus[1];
     this.hStat.flows[0] = new FlowStatus();
     this.hStat.flows[0].flow_name = "";
     this.hStat.flows[0].packets_sent = 0;
     this.flow_rec_stat.flow_name = "";
 }
Esempio n. 2
0
 public Link(EventQueueProcessor eqp, string name, Node src, Node dest, double rate, double prop_delay, Int64 buffer_size)
 {
     this.eqp = eqp;
     this.src = src;
     this.dest = dest;
     this.rate = rate;
     this.name = name;
     this.prop_delay = prop_delay;
     this.buffer_size = buffer_size;
     this.lStatus = new LinkStatus();
     this.lStatus.link = this;
     this.lStatus.dropped_packets = 0;
     this.lStatus.delivered_packets = 0;
     this.is_transmitting = false;
     this.buffer = new Queue<Packet>();
 }
Esempio n. 3
0
 protected Node(EventQueueProcessor eqp, string ip)
 {
     this.eqp = eqp;
     this.ip = ip;
 }
Esempio n. 4
0
 public Router(EventQueueProcessor eqp, IP ip)
     : base(eqp, ip)
 {
 }
Esempio n. 5
0
 public LinkStatePacketSender(EventQueueProcessor eqp, ISet<Link> outgoing_links)
 {
     this.eqp = eqp;
     this.outgoing_links = outgoing_links;
 }