src/csma/model/csma-net-device.h
changeset 8974 bfe1b44645d8
parent 7386 2310ed220a61
child 9063 32755d0516f4
equal deleted inserted replaced
8973:cf0348c84652 8974:bfe1b44645d8
    30 #include "ns3/packet.h"
    30 #include "ns3/packet.h"
    31 #include "ns3/traced-callback.h"
    31 #include "ns3/traced-callback.h"
    32 #include "ns3/nstime.h"
    32 #include "ns3/nstime.h"
    33 #include "ns3/data-rate.h"
    33 #include "ns3/data-rate.h"
    34 #include "ns3/ptr.h"
    34 #include "ns3/ptr.h"
    35 #include "ns3/random-variable.h"
       
    36 #include "ns3/mac48-address.h"
    35 #include "ns3/mac48-address.h"
    37 
    36 
    38 namespace ns3 {
    37 namespace ns3 {
    39 
    38 
    40 class Queue;
    39 class Queue;
   320 
   319 
   321 
   320 
   322   virtual void SetPromiscReceiveCallback (PromiscReceiveCallback cb);
   321   virtual void SetPromiscReceiveCallback (PromiscReceiveCallback cb);
   323   virtual bool SupportsSendFrom (void) const;
   322   virtual bool SupportsSendFrom (void) const;
   324 
   323 
       
   324  /**
       
   325   * Assign a fixed random variable stream number to the random variables
       
   326   * used by this model.  Return the number of streams (possibly zero) that
       
   327   * have been assigned.
       
   328   *
       
   329   * \param stream first stream index to use
       
   330   * \return the number of stream indices assigned by this model
       
   331   */
       
   332   int64_t AssignStreams (int64_t stream);
       
   333 
   325 protected:
   334 protected:
   326   /**
   335   /**
   327    * Perform any object release functionality required to break reference 
   336    * Perform any object release functionality required to break reference 
   328    * cycles in reference counted objects held by the device.
   337    * cycles in reference counted objects held by the device.
   329    */
   338    */