Commit Graph

11 Commits

Author SHA1 Message Date
Jason Watkins
c0efe91b60 Improved consistency of comment formatting. 2015-05-11 15:17:04 -07:00
Jason Watkins
a406b82f44 Updated versions and improved comments. 2015-05-11 15:07:41 -07:00
Jason Watkins
ceba580450 Addressed issues found by Google code lint.
Fixed:
 - Removed trailing whitespace.
 - Removed out of date TODO's.
 - Added #include<algorithm> to DataManager.cpp
 - Reordered includes to include C system headers before C++ system headers.
 - Added username to TODO's
 - Renamed include guards to use full project name as prefix.
 - Made methods and parameters const where possible.
 - Made UDPSocket constructor explicit.

Won't Fix:
 - snprintf is introduced in C++11.
 - Trailing comments at the end of namespace & header guards
 - Did not re-inlude headers already included by the matching XPC header.
 - localtime is fine since X-Plane is not multithreaded at all on the plugin side.
 - Linter confuses #elif with parens as a function call.
 - namespace indentation
2015-05-08 15:18:24 -07:00
Chris Teubert
79d4897206 Added newline at EOF
So X-Code won’t complain anymore.
2015-05-04 10:59:16 -07:00
Jason Watkins
1950685675 Fixed type errors
- Some instances of stdint types were reintroduced by a merge conflicgt. They have now been converted back to language types.
2015-04-23 14:52:38 -07:00
Jason Watkins
bb5c6d8a28 Merge branch 'feature/consistency' into develop 2015-04-21 15:58:44 -07:00
Jason Watkins
5ee49c7d81 Updated plugin.
- Removed dependency on C client.
 - The plugin now responds to client requests on the same port used to establish the connection.
Removed C client dependency from plugin.
2015-04-17 10:56:03 -07:00
Chris Teubert
e60dde457c Changes to work with Mac
Changes include:
- Updating Project
- fixing sendto declaration
- Fixed some bugs in #if Mac sections
- Removed unneeded #includes (my compiler didn’t like them)
2015-04-16 12:58:49 -07:00
Jason Watkins
1a3f658774 Changed types from fixed width types in stdint to language primitive types guaranteed to be at least as big. 2015-04-16 10:13:18 -07:00
Jason Watkins
fe88204b57 Fixed an issue where the recvaddr was not set on Windows
- Also improved logging in UDPSocket
 - Resolves nasa/XPlaneConnect#39
2015-04-14 10:22:34 -07:00
Jason Watkins
2736cd86de Refactored socket code into UDPSocket class. 2015-04-13 09:23:25 -07:00