[][src]Function libeyelink_sys::eyelink_open_node

pub unsafe extern "C" fn eyelink_open_node(
    node: *mut byte,
    busytest: INT16
) -> INT16

@ingroup init_eyelink Allows the computer to connect to tracker, where the tracker is on the same network.

@param node Must be an address returned by \c eyelink_poll_trackers() and \c eyelink_poll_responses() to connect to any tracker. @param busytest If non-zero the call to \c eyelink_open_node() will not disconnect an existing connection. @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 \c TRACKER_BUSY if \c <busytest> is set, and tracker is connected to another computer.\n

\b Example:

\code

ELINKADDR node;				// EyeLink address node

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

text_to_elinkaddr("100.1.1.1", node, 0);

if (eyelink_open_node(node, 1))
return -1;
\endcode

\sa \c eyelink_node_receive(), \c eyelink_node_send(), \c eyelink_node_send_message() and \c eyelink_open()