next up previous contents index
Next: 9.1 Agent state Up: 2. Simulator Basics Previous: 8.2 Commands at a

9. Agents

Agents represent endpoints where network-layer packets are constructed or consumed, and are used in the implementation of protocols at various layers. The Agent../ns-2/agent.h has an implementation partly in OTcl and partly in C++. The C++ implementation is contained in and agent.h, and the OTcl support is in tcl/lib/ns-agent.tcl.