NatNetLinux - NatNet packet reading library for Linux

NatNet, VRPN, TrackD, and Plugins
Post Reply
rocketman768
Posts: 2
Joined: Tue Nov 26, 2013 10:19 am

NatNetLinux - NatNet packet reading library for Linux

Post by rocketman768 »

I don't know if anyone has already written something similar, but I wrote a simple header-only library for reading NatNet packets on Linux machines.

NatNetLinux on Github
johny3212
Posts: 10
Joined: Wed Oct 02, 2013 3:39 am

Re: NatNetLinux - NatNet packet reading library for Linux

Post by johny3212 »

Good work.
But there is also a direct packet example "PacketClient.cpp" for windows. I don't say that this example is nice code because it is C in C++ and is not multi-platform. But my solution is use boost::asio for socket connection and after your code will be multi-platform. Yo can create nice multi-platform code in C++. You can compile same C++ code in Windows, Linux, MacOS and also in Android because core is Linux. I am working now with Android but I use .NET sockets because in the Unity3D it is easier way and I don't have a time to create C++ code and after .NET wrapper for it.

There are some exams for boost::asio. Boost libs are the best extensions libraries for c++. Maker is "std::" . For example these are also included "smart pointers" it is how to use C++ dynamic memory like that garbage collector in Java/C# but it is faster.

Boost::asio link
Post Reply