equal
deleted
inserted
replaced
25 #include "ns3/string.h" |
25 #include "ns3/string.h" |
26 |
26 |
27 namespace ns3 { |
27 namespace ns3 { |
28 |
28 |
29 UdpServerHelper::UdpServerHelper () |
29 UdpServerHelper::UdpServerHelper () |
30 {} |
30 { |
|
31 } |
31 |
32 |
32 UdpServerHelper::UdpServerHelper (uint16_t port) |
33 UdpServerHelper::UdpServerHelper (uint16_t port) |
33 { |
34 { |
34 m_factory.SetTypeId (UdpServer::GetTypeId ()); |
35 m_factory.SetTypeId (UdpServer::GetTypeId ()); |
35 SetAttribute ("Port", UintegerValue (port)); |
36 SetAttribute ("Port", UintegerValue (port)); |
62 { |
63 { |
63 return m_server; |
64 return m_server; |
64 } |
65 } |
65 |
66 |
66 UdpClientHelper::UdpClientHelper () |
67 UdpClientHelper::UdpClientHelper () |
67 {} |
68 { |
|
69 } |
68 |
70 |
69 UdpClientHelper::UdpClientHelper (Ipv4Address address, uint16_t port) |
71 UdpClientHelper::UdpClientHelper (Ipv4Address address, uint16_t port) |
70 { |
72 { |
71 m_factory.SetTypeId (UdpClient::GetTypeId ()); |
73 m_factory.SetTypeId (UdpClient::GetTypeId ()); |
72 SetAttribute ("RemoteAddress", Ipv4AddressValue (address)); |
74 SetAttribute ("RemoteAddress", Ipv4AddressValue (address)); |
92 } |
94 } |
93 return apps; |
95 return apps; |
94 } |
96 } |
95 |
97 |
96 UdpTraceClientHelper::UdpTraceClientHelper () |
98 UdpTraceClientHelper::UdpTraceClientHelper () |
97 {} |
99 { |
|
100 } |
98 |
101 |
99 UdpTraceClientHelper::UdpTraceClientHelper (Ipv4Address address, uint16_t port, std::string filename) |
102 UdpTraceClientHelper::UdpTraceClientHelper (Ipv4Address address, uint16_t port, std::string filename) |
100 { |
103 { |
101 m_factory.SetTypeId (UdpTraceClient::GetTypeId ()); |
104 m_factory.SetTypeId (UdpTraceClient::GetTypeId ()); |
102 SetAttribute ("RemoteAddress", Ipv4AddressValue (address)); |
105 SetAttribute ("RemoteAddress", Ipv4AddressValue (address)); |