src/internet-node/udp-l4-protocol.h
changeset 742 b73f8e30c75e
parent 741 38ebb2fb16f5
child 1303 9856d1175cbb
child 1325 f3be9eed2d90
equal deleted inserted replaced
741:38ebb2fb16f5 742:b73f8e30c75e
    17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    18  *
    18  *
    19  * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
    19  * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
    20  */
    20  */
    21 
    21 
    22 #ifndef UDP_H
    22 #ifndef UDP_L4_PROTOCOL_H
    23 #define UDP_H
    23 #define UDP_L4_PROTOCOL_H
    24 
    24 
    25 #include <stdint.h>
    25 #include <stdint.h>
    26 
    26 
    27 #include "ns3/packet.h"
    27 #include "ns3/packet.h"
    28 #include "ns3/ipv4-address.h"
    28 #include "ns3/ipv4-address.h"
    37 class TraceContext;
    37 class TraceContext;
    38 class Socket;
    38 class Socket;
    39 /**
    39 /**
    40  * \brief Implementation of the UDP protocol
    40  * \brief Implementation of the UDP protocol
    41  */
    41  */
    42 class Udp : public Ipv4L4Protocol {
    42 class UdpL4Protocol : public Ipv4L4Protocol {
    43 public:
    43 public:
    44   static const uint8_t PROT_NUMBER;
    44   static const uint8_t PROT_NUMBER;
    45   /**
    45   /**
    46    * \brief Constructor
    46    * \brief Constructor
    47    * \param node The node this protocol is associated with
    47    * \param node The node this protocol is associated with
    48    */
    48    */
    49   Udp (Ptr<Node> node);
    49   UdpL4Protocol (Ptr<Node> node);
    50   virtual ~Udp ();
    50   virtual ~UdpL4Protocol ();
    51 
    51 
    52   virtual TraceResolver *CreateTraceResolver (TraceContext const &context);
    52   virtual TraceResolver *CreateTraceResolver (TraceContext const &context);
    53   /**
    53   /**
    54    * \return A smart Socket pointer to a UdpSocket, allocated by this instance
    54    * \return A smart Socket pointer to a UdpSocket, allocated by this instance
    55    * of the UDP protocol
    55    * of the UDP protocol
    94   Ipv4EndPointDemux *m_endPoints;
    94   Ipv4EndPointDemux *m_endPoints;
    95 };
    95 };
    96 
    96 
    97 }; // namespace ns3
    97 }; // namespace ns3
    98 
    98 
    99 #endif /* UDP_H */
    99 #endif /* UDP_L4_PROTOCOL_H */