The C client tests were getting a bit unwieldy. Moved each block of tests to a separate file based on the functionality being tested. I've just put all of the test code directly in the headers because there doesn't seem to be any reason for the test headers to be included anywhere except in main.c.
- Swaped names of openUDP and aopenUDP.
- openUDP is now the "automatic" version, requiring only the X-Plane IP address.
- aopenUDP is now the "advanced" version, requiring both the X-Plane port and a client port.
- Added support for passing NULL to sendTEXT.
- openTest now validates that "localhost" resolves to "127.0.0.1".
- sendTEXTTest now sets and clears text. Note that since there is no way to externally verify the result of a TEXT command, the user must now step through this test using the debugger to fully verify functionality.
- requestDREFTest renamed to getDREFTest.
- getDREFTest now gets one dataref of each type except multidimensional arrays.
- sendDREFTest now sets one dataref of each type except mulidimensional arrays.
- sendDREFTest now attempts to set a read-only dataref. Need to work out how to test the result of this effectively.
- psendCTRLTest & sendCTRLTest now test multiple values, default values and sending only some parameters.
- Added psendPOSITest.
- psendPOSITest & sendPOSIest now test multiple values, default values and sending only some parameters.
- sendWYPTTest now clears waypoints before setting them.
- Fixed a buffer overflow in sendCTRL.
- Fixed incorrect inderection in readUDP.
- Removed unused usleep function.
- Removed redundant include of WS2tcpip.h
- Fixed widespread error where sendUDP's return value was not being checked correctly.
- Updated signature of openUDP to place optional parameters at the end
- Fixed bug in CTRL command where the buffer length was not correctly set.
- Fixed setCONN to correctlly reset the client's socket.
- Added Visual Studio solution for C client example.
- Fixed inconsistent indentation in C client example.
- Changed default behavior in MATLAB client's sendCTRL function to leave unchanged instead of setting default values.
- Fixed sendPOSI and sendDATA sections of the MATLAB example.
- Fixed port number in the C and C++ setCONN tests.
- Fixed incorrect message buffer size in sendCTRL function.
- Fixed a bug in sendCTRLTest where not all DREF sizes were being set.
- Increased message buffer size in sendReadTest to account for assumptions made by sendUDP.
- Fixed a bug in updateLog where the log message would sometimes start with several null characters, causing the log message to be effectively ignored by fprintf.
- The xpcPlugin Visual Studio solution now supports 32 bit and 64 bit builds.
- Logging performed by the plugin now works correctly on Windows.
- Long log messages are now truncated to 500 characters. Previously, messages over 500 characters would be omitted, and an error message logged in their place.
- Several files which were incorrectly added to source control have been deleted.
- Added a Visual Studio solution that builds the C test scripts on Windows.
- Updated .gitignore to ignore user specific Visual Studio files
- Updated .gitignore to ignore Windows build folders
- Fixed a bug in closeTest. It now properly closes the UDP port a second time after reopening the port to verify that it closed successfully.