equal
deleted
inserted
replaced
178 Ptr<Socket> localSocket = socketFactory->CreateSocket (); |
178 Ptr<Socket> localSocket = socketFactory->CreateSocket (); |
179 localSocket->Bind (); |
179 localSocket->Bind (); |
180 |
180 |
181 // Create a packet sink to receive these packets |
181 // Create a packet sink to receive these packets |
182 Ptr<PacketSink> sink = |
182 Ptr<PacketSink> sink = |
183 CreateObject<PacketSink> ( |
183 CreateObject<PacketSink> ("Local", Address (InetSocketAddress (Ipv4Address::GetAny (), servPort)), |
184 "Node", n2, |
184 "Protocol", TypeId::LookupByName ("Tcp")); |
185 "Local", Address (InetSocketAddress (Ipv4Address::GetAny (), servPort)), |
|
186 "Protocol", TypeId::LookupByName ("Tcp")); |
|
187 n2->AddApplication (sink); |
185 n2->AddApplication (sink); |
188 sink->Start (Seconds (0.0)); |
186 sink->Start (Seconds (0.0)); |
189 sink->Stop (Seconds (100.0)); |
187 sink->Stop (Seconds (100.0)); |
190 |
188 |
191 // |
189 // |