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

@@ -44,7 +44,7 @@ main (int argc, char *argv[])
Ptr<Node> n0 = bus.GetNode (0);
Ptr<UdpEchoClient> client =
CreateObjectWith<UdpEchoClient> ("Node", n0,
CreateObject<UdpEchoClient> ("Node", n0,
"RemoteIpv4", Ipv4Address ("10.1.0.1"),
"RemotePort", Uinteger (port),
"MaxPackets", Uinteger (1),
@@ -54,7 +54,7 @@ main (int argc, char *argv[])
Ptr<Node> n1 = bus.GetNode (1);
Ptr<UdpEchoServer> server =
CreateObjectWith<UdpEchoServer> ("Node", n1, "Port", Uinteger (port));
CreateObject<UdpEchoServer> ("Node", n1, "Port", Uinteger (port));
n1->AddApplication (server);
server->Start(Seconds(1.));