NatNet Unicast

NatNet, VRPN, TrackD, and Plugins
Post Reply
TheDruidsKeeper
Posts: 1
Joined: Thu May 25, 2017 5:44 pm

NatNet Unicast

Post by TheDruidsKeeper »

The WinFormsSample has this in the disconnect:

Code: Select all

			// [NatNet] disconnect
			// optional : for unicast clients only - notify Motive we are disconnecting
			int nBytes = 0;
			byte[] response = new byte[10000];
			int rc;
			rc = m_NatNet.SendMessageAndWait("Disconnect", out response, out nBytes);
			if (rc == 0)
			{

			}
			// shutdown our client socket
			m_NatNet.Uninitialize();
However, the commands wiki doesn't list "Disconnect" as one of the commands. Does this command need to be sent? Does it do anything that the Uninitialize doesn't?

Additionally, is there any way to get a list of all the target IP's that unicast is currently sending out to? In Motive I know we can see whether we are sending to any clients, but I don't see any indication of how many / which clients we're sending to.
Post Reply