src/applications/udp-echo/udp-echo-server.cc
changeset 2965 4b28e9740e3b
parent 2765 7bb9c55cfb49
child 2989 b7eb3929096c
equal deleted inserted replaced
2964:4e8cb1577144 2965:4b28e9740e3b
    38 {
    38 {
    39   static TypeId tid = TypeId ("ns3::UdpEchoServer")
    39   static TypeId tid = TypeId ("ns3::UdpEchoServer")
    40     .SetParent<Application> ()
    40     .SetParent<Application> ()
    41     .AddConstructor<UdpEchoServer> ()
    41     .AddConstructor<UdpEchoServer> ()
    42     .AddAttribute ("Port", "Port on which we listen for incoming packets.",
    42     .AddAttribute ("Port", "Port on which we listen for incoming packets.",
    43                    Uinteger (9),
    43                    UintegerValue (9),
    44                    MakeUintegerAccessor (&UdpEchoServer::m_port),
    44                    MakeUintegerAccessor (&UdpEchoServer::m_port),
    45                    MakeUintegerChecker<uint16_t> ())
    45                    MakeUintegerChecker<uint16_t> ())
    46     ;
    46     ;
    47   return tid;
    47   return tid;
    48 }
    48 }