Exemple #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 = "";
 }
Exemple #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>();
 }
Exemple #3
0
 protected Node(EventQueueProcessor eqp, string ip)
 {
     this.eqp = eqp;
     this.ip = ip;
 }
Exemple #4
0
 public Router(EventQueueProcessor eqp, IP ip)
     : base(eqp, ip)
 {
 }
Exemple #5
0
 public LinkStatePacketSender(EventQueueProcessor eqp, ISet<Link> outgoing_links)
 {
     this.eqp = eqp;
     this.outgoing_links = outgoing_links;
 }