src/devices/p2p/p2p-net-device.h
changeset 568 e1660959ecbb
parent 543 a730800a31d5
child 581 15240a33f517
equal deleted inserted replaced
567:6fb98941c36f 568:e1660959ecbb
   138    * @see PointToPointTopology::AddPointToPointLink ()
   138    * @see PointToPointTopology::AddPointToPointLink ()
   139    * @see SetDataRate ()
   139    * @see SetDataRate ()
   140    * @see SetInterframeGap ()
   140    * @see SetInterframeGap ()
   141    * @param ch a pointer to the channel to which this object is being attached.
   141    * @param ch a pointer to the channel to which this object is being attached.
   142    */
   142    */
   143   bool Attach(PointToPointChannel* ch);
   143   bool Attach(Ptr<PointToPointChannel> ch);
   144   /**
   144   /**
   145    * Attach a queue to the PointToPointNetDevice.
   145    * Attach a queue to the PointToPointNetDevice.
   146    *
   146    *
   147    * The PointToPointNetDevice "owns" a queue.  This queue is created by the
   147    * The PointToPointNetDevice "owns" a queue.  This queue is created by the
   148    * PointToPointTopology object and implements a queueing method such as
   148    * PointToPointTopology object and implements a queueing method such as
   187    * direct access to the connected channel
   187    * direct access to the connected channel
   188    *
   188    *
   189    * @see PointToPointChannel
   189    * @see PointToPointChannel
   190    * @returns a pointer to the channel
   190    * @returns a pointer to the channel
   191    */
   191    */
   192   virtual Channel *DoGetChannel(void) const;
   192   virtual Ptr<Channel> DoGetChannel(void) const;
   193 private:
   193 private:
   194   /**
   194   /**
   195    * Send a Packet Down the Wire.
   195    * Send a Packet Down the Wire.
   196    *
   196    *
   197    * The SendTo method is defined as the standard way that the level three
   197    * The SendTo method is defined as the standard way that the level three
   286   /**
   286   /**
   287    * The PointToPointChannel to which this PointToPointNetDevice has been
   287    * The PointToPointChannel to which this PointToPointNetDevice has been
   288    * attached.
   288    * attached.
   289    * @see class PointToPointChannel
   289    * @see class PointToPointChannel
   290    */
   290    */
   291   PointToPointChannel* m_channel;
   291   Ptr<PointToPointChannel> m_channel;
   292   /**
   292   /**
   293    * The Queue which this PointToPointNetDevice uses as a packet source.
   293    * The Queue which this PointToPointNetDevice uses as a packet source.
   294    * Management of this Queue has been delegated to the PointToPointNetDevice
   294    * Management of this Queue has been delegated to the PointToPointNetDevice
   295    * and it has the responsibility for deletion.
   295    * and it has the responsibility for deletion.
   296    * @see class Queue
   296    * @see class Queue