src/devices/csma/csma-net-device.h
changeset 1308 5c5937a4150d
parent 1304 642d6798feaa
child 1412 9ce52d4f530b
child 1449 df86e6b876ef
equal deleted inserted replaced
1305:27dd3e15308a 1308:5c5937a4150d
   193    * arrived at the device.
   193    * arrived at the device.
   194    *
   194    *
   195    * @see CsmaChannel
   195    * @see CsmaChannel
   196    * \param p a reference to the received packet
   196    * \param p a reference to the received packet
   197    */
   197    */
   198   void Receive (Packet& p);
   198   void Receive (const Packet& p);
   199 
   199 
   200   bool IsSendEnabled (void);
   200   bool IsSendEnabled (void);
   201   bool IsReceiveEnabled (void);
   201   bool IsReceiveEnabled (void);
   202 
   202 
   203   void SetSendEnable (bool);
   203   void SetSendEnable (bool);
   268    * \param p a reference to the packet to send
   268    * \param p a reference to the packet to send
   269    * \param dest destination address
   269    * \param dest destination address
   270    * \param protocolNumber -- this parameter is not used here
   270    * \param protocolNumber -- this parameter is not used here
   271    * \return true if success, false on failure
   271    * \return true if success, false on failure
   272    */
   272    */
   273   virtual bool SendTo (Packet& p, const Address& dest, uint16_t protocolNumber);
   273   virtual bool SendTo (const Packet& p, const Address& dest, uint16_t protocolNumber);
   274 
   274 
   275   /**
   275   /**
   276    * Start Sending a Packet Down the Wire.
   276    * Start Sending a Packet Down the Wire.
   277    *
   277    *
   278    * The TransmitStart method is the method that is used internally in
   278    * The TransmitStart method is the method that is used internally in