Bug 180 - Minor Error in UDP Echo Apps
: Minor Error in UDP Echo Apps
Status: RESOLVED FIXED
: ns-3
samples
: pre-release
: All All
: P4 minor
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-05-16 04:02 EDT by
Modified: 2008-07-01 13:32 EDT (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-05-16 04:02:26 EDT
UDPEchoClient::StopApplication, line 116, the "if (!m_socket)" should not be
negated (looks copy & pasted from setup code).

Ditto UDPEchoServer::StopApplication, line 90.

The other applications seem fine.

Thx
------- Comment #1 From 2008-05-16 09:55:58 EDT -------
Generally, the code should be written as if (m_socket != 0) to avoid this kind
of problem. i.e., avoid relying on implicit conversions.