From f765bcff0fca606e4646c4b015c4359be1afae9e Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Wed, 28 Aug 2013 18:45:56 -0700 Subject: [PATCH] remove trailing whitespace --- examples/tutorial/sixth.cc | 41 +++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/examples/tutorial/sixth.cc b/examples/tutorial/sixth.cc index 1fa2b5aa9..734a42206 100644 --- a/examples/tutorial/sixth.cc +++ b/examples/tutorial/sixth.cc @@ -43,10 +43,10 @@ NS_LOG_COMPONENT_DEFINE ("SixthScriptExample"); // We want to look at changes in the ns-3 TCP congestion window. We need // to crank up a flow and hook the CongestionWindow attribute on the socket // of the sender. Normally one would use an on-off application to generate a -// flow, but this has a couple of problems. First, the socket of the on-off -// application is not created until Application Start time, so we wouldn't be -// able to hook the socket (now) at configuration time. Second, even if we -// could arrange a call after start time, the socket is not public so we +// flow, but this has a couple of problems. First, the socket of the on-off +// application is not created until Application Start time, so we wouldn't be +// able to hook the socket (now) at configuration time. Second, even if we +// could arrange a call after start time, the socket is not public so we // couldn't get at it. // // So, we can cook up a simple version of the on-off application that does what @@ -54,17 +54,16 @@ NS_LOG_COMPONENT_DEFINE ("SixthScriptExample"); // application. On the minus side, we don't have a helper, so we have to get // a little more involved in the details, but this is trivial. // -// So first, we create a socket and do the trace connect on it; then we pass -// this socket into the constructor of our simple application which we then +// So first, we create a socket and do the trace connect on it; then we pass +// this socket into the constructor of our simple application which we then // install in the source node. // =========================================================================== // -class MyApp : public Application +class MyApp : public Application { public: - MyApp (); - virtual ~MyApp(); + virtual ~MyApp (); void Setup (Ptr socket, Address address, uint32_t packetSize, uint32_t nPackets, DataRate dataRate); @@ -86,18 +85,18 @@ private: }; MyApp::MyApp () - : m_socket (0), - m_peer (), - m_packetSize (0), - m_nPackets (0), - m_dataRate (0), - m_sendEvent (), - m_running (false), + : m_socket (0), + m_peer (), + m_packetSize (0), + m_nPackets (0), + m_dataRate (0), + m_sendEvent (), + m_running (false), m_packetsSent (0) { } -MyApp::~MyApp() +MyApp::~MyApp () { m_socket = 0; } @@ -122,7 +121,7 @@ MyApp::StartApplication (void) SendPacket (); } -void +void MyApp::StopApplication (void) { m_running = false; @@ -138,7 +137,7 @@ MyApp::StopApplication (void) } } -void +void MyApp::SendPacket (void) { Ptr packet = Create (m_packetSize); @@ -150,7 +149,7 @@ MyApp::SendPacket (void) } } -void +void MyApp::ScheduleTx (void) { if (m_running) @@ -174,7 +173,7 @@ RxDrop (Ptr file, Ptr p) file->Write (Simulator::Now (), p); } -int +int main (int argc, char *argv[]) { NodeContainer nodes;