Commit Graph

18 Commits

Author SHA1 Message Date
Jan Chaloupecky
90ccec0d07 Fixed tabs vs spaces indentations (#157) 2019-03-15 08:29:10 -07:00
Jan Chaloupecky
50335c4a5c Added UDP multicast for plugin discovery (#153)
* Added Timer

* Added UDPSocket::GetAddr

* Added MessageHandlers::SendBeacon()

* PoC of starting a timer on PluginEnable

* C++11

* Added Timer to xcode project

* C++11 in cmake

* added Timer to cmake

* use function pointer in Timer

* moved Timer to namespace

+ wait for thread to join when stopping the timer

* Windows: changed uint to unisgned short

* Windows: Added Timer.h/cpp to project

* GetAddr static

* Send xplane and plugin version with BECN

* SendBeacon with params

* fixed file copyrights

* Include functional

to fix Linux compile error

* review fixes

* Send plugin receive port in BECN

* review fixes
2019-03-14 07:49:43 -07:00
Jason Watkins
df5e2fd198 Update copyright notice 2018-10-19 17:44:27 -07:00
Chris Teubert
6631814438 Updated Copyright Year, Version #, Mac Binary 2017-05-03 10:20:59 -07:00
Jason Watkins
ec151a2248 Update copyright year. 2016-03-01 16:31:14 -08:00
Chris Teubert
cfdd183214 Merge branch 'master' into develop
# Conflicts:
#	xpcPlugin/XPlaneConnect/mac.xpl
#	xpcPlugin/xpcPlugin.xcodeproj/project.pbxproj
2016-02-29 12:48:30 -08:00
Jason Watkins
796fd0f7aa Fix for Linux builds 2015-05-04 16:09:45 -07:00
Jason Watkins
ed8d065642 Explicitly initialize sock to ~0 if WSAStartup fails. 2015-04-30 09:32:19 -07:00
Jason Watkins
bdc4a04f1f Fixed minor issues reported by Visual Studio code analysis tool. 2015-04-28 12:10:35 -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
a6a99dc574 Updated plugin includes to build in gcc and added Linux binaries. 2015-04-22 10:16:34 -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
8591db96c0 Fixed various type inconsistencies to remove warning when building on Windows 2015-04-14 15:49:25 -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