get rid of CreateObjectWith

This commit is contained in:
Mathieu Lacage
2008-03-11 13:30:12 -07:00
parent 7a1c14372c
commit b5a8d46096
74 changed files with 399 additions and 412 deletions

View File

@@ -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);