Page 1 of 1
Streaming to OSX
Posted: Tue Dec 13, 2011 1:32 am
by keezpipslab
Hello,
I was wondering if there are any options to stream Natnet to an OSX application made in C++ ?
Windows has its Natnet SDK.
Are there a examples for a code not using the natnet lib ?
Greetings,
Keez
Re: Streaming to OSX
Posted: Tue Dec 13, 2011 10:37 am
by morgan
The NatNet SDK has a C/C++ depacketization sample that shows how to decode NatNet packets without using the natnet lib.
You would need to replace the winsock calls with the osx equivalent.
Morgan
Re: Streaming to OSX
Posted: Mon Jan 02, 2012 1:05 pm
by keezpipslab
Okay.
Just for my full understanding:
The natnet protocol uses two sockets:
A Commandsocket which is broadcasted but is not multicast
and
A Datasocket which is joined to a multicast group.
The Packetclient uses
#define MULTICAST_ADDRESS "239.255.42.99" // IANA, local network
/
the natnetuserguide.jpg mentions
224.0.0.1:1001
What is the right one (if one can speak about a right one) ?
Thanks, Keez
Re: Streaming to OSX
Posted: Mon Jan 02, 2012 2:57 pm
by morgan
239.255.42.99 is the new, correct, default. It was changed from 224.0.0.1:1001 to be compatible with unix clients.
If necessary the multicast adress can be overridden in the server interface (Arena or TrackingTools).
We'll make sure to update the manual - thx.
Morgan