tutorial/tutorial-csma-echo-ascii-trace.cc
changeset 2888 872dc8466352
parent 2887 9a637e6daee0
child 2965 4b28e9740e3b
child 2996 a83b94e277d4
equal deleted inserted replaced
2887:9a637e6daee0 2888:872dc8466352
    42   csma.SetChannelParameter ("Delay", MilliSeconds (2));
    42   csma.SetChannelParameter ("Delay", MilliSeconds (2));
    43   NetDeviceContainer nd = csma.Install (n);
    43   NetDeviceContainer nd = csma.Install (n);
    44 
    44 
    45   Ipv4AddressHelper ipv4;
    45   Ipv4AddressHelper ipv4;
    46   ipv4.SetBase ("10.1.1.0", "255.255.255.0");
    46   ipv4.SetBase ("10.1.1.0", "255.255.255.0");
    47   Ipv4InterfaceContainer i = ipv4.Allocate (nd);
    47   Ipv4InterfaceContainer i = ipv4.Assign (nd);
    48 
    48 
    49   uint16_t port = 7;
    49   uint16_t port = 7;
    50 
    50 
    51   UdpEchoClientHelper client;
    51   UdpEchoClientHelper client;
    52   client.SetRemote (i.GetAddress (1), port);
    52   client.SetRemote (i.GetAddress (1), port);