If you're not developing with Cornerstone and you don't want to use TUIO, tracking data can also be received in XML format. To do so, define a Globals block in config.txt
Globals {
/* Port number for the XML handshake server socket. /*/
xml-handshake-port = "5503"
/* Hostname for the XML server socket. /*/
xml-server-host = "localhost"
/* Port number for the XML server socket. /*/
xml-server-port = "5501"
}
Any Cornerstone application is capable of acting as an XML stream server to which your application can connect to. Usually, MTServer is used for this purpose.
Using the example from screens and tracker, the complete config.txt file might look like this:
Globals {
xml-handshake-port = "5503"
xml-server-host = "localhost"
xml-server-port = "5501"
}
NetBridge {
host = "10.0.0.1"
input-translate = "0 0"
}
NetBridge {
host = "10.0.0.2"
input-translate = "1985 0"
}
Then you application could open a socket to localhost port 5501 and start receiving tracking data in XML form.
All MultiTaction models, embedded or not, have XML stream enabled with default ports as shown above. Thus your application can connect directly to screen(s) to receive tracking data in XML form.