equal
deleted
inserted
replaced
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 } |