src/devices/point-to-point/point-to-point-net-device.h
changeset 1270 1bcaff94bf03
parent 1266 6b27f6b349ba
parent 1229 e4cfe4094c10
child 1280 8c51afddffcb
equal deleted inserted replaced
1269:86749c52475a 1270:1bcaff94bf03
    36 namespace ns3 {
    36 namespace ns3 {
    37 
    37 
    38 class Queue;
    38 class Queue;
    39 class PointToPointChannel;
    39 class PointToPointChannel;
    40 
    40 
       
    41 class PointToPointTraceType : public TraceContextElement
       
    42 {
       
    43 public:
       
    44   PointToPointTraceType ();
       
    45   void Print (std::ostream &os) const;
       
    46   static uint16_t GetUid (void);
       
    47 };
       
    48 
    41 /**
    49 /**
    42  * \class PointToPointNetDevice
    50  * \class PointToPointNetDevice
    43  * \brief A Device for a Point to Point Network Link.
    51  * \brief A Device for a Point to Point Network Link.
    44  *
    52  *
    45  * Ns-3 takes a four-layer view of a protocol stack.  This is the same model
    53  * Ns-3 takes a four-layer view of a protocol stack.  This is the same model
    62  * PC card that is used to connect to the PointToPoint network.
    70  * PC card that is used to connect to the PointToPoint network.
    63  */
    71  */
    64 class PointToPointNetDevice : public NetDevice {
    72 class PointToPointNetDevice : public NetDevice {
    65 public:
    73 public:
    66   /**
    74   /**
    67    * Enumeration of the types of traces supported in the class.
       
    68    *
       
    69    */
       
    70   enum TraceType {
       
    71     QUEUE, /**< Trace queue events on the attached queue */
       
    72     RX,    /**< Trace packet reception events (from the channel) */
       
    73   };
       
    74   /**
       
    75    * Construct a PointToPointNetDevice
    75    * Construct a PointToPointNetDevice
    76    *
    76    *
    77    * This is the constructor for the PointToPointNetDevice.  It takes as a
    77    * This is the constructor for the PointToPointNetDevice.  It takes as a
    78    * parameter the Node to which this device is connected.  Ownership of the
    78    * parameter the Node to which this device is connected.  Ownership of the
    79    * Node pointer is not implied and the node must not be deleded.
    79    * Node pointer is not implied and the node must not be deleded.