#include <netelem.h>
Inheritance diagram for Server:
Public Member Functions | |
Server (char *name, double rBin, int qsize=-1, timeunits delay=0, queuediscipline discipline=fifo, unsigned int mtu=0, double pebit=0) | |
virtual | ~Server (void) |
void | Send (timeunits now, Packet *p) |
void | Recv (timeunits now, Packet *p) |
void | Reset (bool dump=false) |
|
Constructor.
|
|
Dumps statistics on service time, time-averaged queue length, observed queue length, server occupancy, and packet loss ratio. |
|
Receives a packet from the upstream NetElement and either puts it in the server queue or starts transmiting it.
Implements NetElement. |
|
Resets server's statiscs. Implements NetElement. |
|
Passes the packet to the next NetElement or NetElement.
Reimplemented from NetElement. |