get rid of CreateObjectWith
This commit is contained in:
@@ -148,7 +148,7 @@ main (int argc, char *argv[])
|
||||
uint16_t port = 7;
|
||||
|
||||
Ptr<UdpEchoClient> client =
|
||||
CreateObjectWith<UdpEchoClient> ("Node", n0,
|
||||
CreateObject<UdpEchoClient> ("Node", n0,
|
||||
"RemoteIpv4", Ipv4Address ("10.1.1.2"),
|
||||
"RemotePort", Uinteger (port),
|
||||
"MaxPackets", Uinteger (1),
|
||||
@@ -157,7 +157,7 @@ main (int argc, char *argv[])
|
||||
n0->AddApplication (client);
|
||||
|
||||
Ptr<UdpEchoServer> server =
|
||||
CreateObjectWith<UdpEchoServer> ("Node", n1,
|
||||
CreateObject<UdpEchoServer> ("Node", n1,
|
||||
"Port", Uinteger (port));
|
||||
n1->AddApplication (server);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user