Bugzilla – Bug 180
Minor Error in UDP Echo Apps
Last modified: 2008-07-01 13:32:30 UTC
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
Generally, the code should be written as if (m_socket != 0) to avoid this kind of problem. i.e., avoid relying on implicit conversions.