src/devices/p2p/p2p-net-device.h
changeset 1161 bb72baff8b26
parent 971 7aba0cf0df19
equal deleted inserted replaced
1160:fa6b9768ee27 1161:bb72baff8b26
    20 
    20 
    21 #ifndef POINT_TO_POINT_NET_DEVICE_H
    21 #ifndef POINT_TO_POINT_NET_DEVICE_H
    22 #define POINT_TO_POINT_NET_DEVICE_H
    22 #define POINT_TO_POINT_NET_DEVICE_H
    23 
    23 
    24 #include <string.h>
    24 #include <string.h>
    25 #include "ns3/mac-address.h"
    25 #include "ns3/address.h"
    26 #include "ns3/node.h"
    26 #include "ns3/node.h"
    27 #include "ns3/net-device.h"
    27 #include "ns3/net-device.h"
    28 #include "ns3/callback.h"
    28 #include "ns3/callback.h"
    29 #include "ns3/packet.h"
    29 #include "ns3/packet.h"
    30 #include "ns3/callback-trace-source.h"
    30 #include "ns3/callback-trace-source.h"
   199    * protocol uses to tell a NetDevice to send a packet.  SendTo is declared
   199    * protocol uses to tell a NetDevice to send a packet.  SendTo is declared
   200    * as abstract in the NetDevice class and we declare it here.
   200    * as abstract in the NetDevice class and we declare it here.
   201    *
   201    *
   202    * @see NetDevice
   202    * @see NetDevice
   203    * @param p a reference to the packet to send
   203    * @param p a reference to the packet to send
   204    * @param dest a reference to the MacAddress of the destination device
   204    * @param dest a reference to the Address of the destination device
   205    * @returns true if success, false on failure
   205    * @returns true if success, false on failure
   206    */
   206    */
   207   virtual bool SendTo (Packet& p, const MacAddress& dest);
   207   virtual bool SendTo (Packet& p, const Address& dest);
   208   /**
   208   /**
   209    * Start Sending a Packet Down the Wire.
   209    * Start Sending a Packet Down the Wire.
   210    *
   210    *
   211    * The TransmitStart method is the method that is used internally in the
   211    * The TransmitStart method is the method that is used internally in the
   212    * PointToPointNetDevice to begin the process of sending a packet out on
   212    * PointToPointNetDevice to begin the process of sending a packet out on