[][src]Function libeyelink_sys::eyelink_broadcast_open

pub unsafe extern "C" fn eyelink_broadcast_open() -> INT16

@ingroup init_eyelink Allows a third computer to listen in on a session between the eye tracker and a controlling remote machine. This allows it to receive data during recording and playback, and to monitor the eye tracker mode. The local computer will not be able to send commands to the eye tracker, but may be able to send messages or request the tracker time.

@remarks May not function properly, if there are more than one Ethernet cards installed. @return \c 0 if successful.\n \c LINK_INITIALIZE_FAILED if link could not be established.\n \c CONNECT_TIMEOUT_FAILED if tracker did not respond.\n \c WRONG_LINK_VERSION if the versions of the EyeLink library and tracker are incompatible.\n

\b Example:

\code

#include 
#include 

if(open_eyelink_connection(-1))
return -1;

eyelink_set_name("Broadcast");

...

if(eyelink_broadcast_open())
{
printf("Cannot open broadcast connection to tracker");
return -1;
}

eyelink_reset_data(1);
eyelink_data_switch(RECORD_LINK_SAMPLES | RECORD_LINK_EVENTS);
\endcode

\sa \c eyelink_close(), \c eyelink_dummy_open(), \c eyelink_is_connected(), \c eyelink_open() and \c eyelink_open_node()