--- a/examples/tcp-large-transfer.cc Tue May 20 11:52:25 2008 -0700
+++ b/examples/tcp-large-transfer.cc Tue May 20 12:16:55 2008 -0700
@@ -169,15 +169,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);