Streaming to OSX

NatNet, VRPN, TrackD, and Plugins
Post Reply
keezpipslab
Posts: 5
Joined: Thu May 28, 2009 4:41 am

Streaming to OSX

Post 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
morgan
NaturalPoint Employee
NaturalPoint Employee
Posts: 199
Joined: Tue Jun 24, 2008 2:01 pm
Location: Corvallis, OR, USA
Contact:

Re: Streaming to OSX

Post 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
keezpipslab
Posts: 5
Joined: Thu May 28, 2009 4:41 am

Re: Streaming to OSX

Post 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
morgan
NaturalPoint Employee
NaturalPoint Employee
Posts: 199
Joined: Tue Jun 24, 2008 2:01 pm
Location: Corvallis, OR, USA
Contact:

Re: Streaming to OSX

Post 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
Post Reply