examples/udp-echo.cc
changeset 3629 367ae1cba60f
parent 3506 cba7b2b80fe8
child 4264 9d2e96c4e6e4
equal deleted inserted replaced
3623:5209cecd2ade 3629:367ae1cba60f
    87 // Explicitly create the channels required by the topology (shown above).
    87 // Explicitly create the channels required by the topology (shown above).
    88 //
    88 //
    89   CsmaHelper csma;
    89   CsmaHelper csma;
    90   csma.SetChannelAttribute ("DataRate", DataRateValue (DataRate(5000000)));
    90   csma.SetChannelAttribute ("DataRate", DataRateValue (DataRate(5000000)));
    91   csma.SetChannelAttribute ("Delay", TimeValue (MilliSeconds (2)));
    91   csma.SetChannelAttribute ("Delay", TimeValue (MilliSeconds (2)));
    92   csma.SetDeviceAttribute ("MTU", UintegerValue (1400));
    92   csma.SetDeviceAttribute ("Mtu", UintegerValue (1400));
    93   NetDeviceContainer d = csma.Install (n);
    93   NetDeviceContainer d = csma.Install (n);
    94 
    94 
    95   Ipv4AddressHelper ipv4;
    95   Ipv4AddressHelper ipv4;
    96 //
    96 //
    97 // We've got the "hardware" in place.  Now we need to add IP addresses.
    97 // We've got the "hardware" in place.  Now we need to add IP addresses.