examples/tcp-large-transfer.cc
changeset 3243 a4b8da16a324
parent 3242 309f511aa143
parent 3132 b0b0abb911cd
child 3245 ad57fb768f3a
--- a/examples/tcp-large-transfer.cc	Tue May 20 14:40:36 2008 -0400
+++ b/examples/tcp-large-transfer.cc	Wed May 21 12:01:24 2008 -0400
@@ -143,15 +143,15 @@
   uint16_t servPort = 50000;
 
   // Create a packet sink to receive these packets
-  PacketSinkHelper sink ("ns3::Tcp",
+  PacketSinkHelper sink ("ns3::TcpSocketFactory",
                          InetSocketAddress (Ipv4Address::GetAny (), servPort));
 
   ApplicationContainer apps = sink.Install (c1.Get (1));
   apps.Start (Seconds (0.0));
 
   // and generate traffic to remote sink.
-  //TypeId tid = TypeId::LookupByName ("ns3::Tcp");
-  Ptr<Socket> localSocket = Socket::CreateSocket (c0.Get (0), Tcp::GetTypeId ());
+  //TypeId tid = TypeId::LookupByName ("ns3::TcpSocketFactory");
+  Ptr<Socket> localSocket = Socket::CreateSocket (c0.Get (0), TcpSocketFactory::GetTypeId ());
   localSocket->Bind ();
   Simulator::ScheduleNow (&StartFlow, localSocket, nBytes,
                           ipInterfs.GetAddress (1), servPort);