[][src]Function libeyelink_sys::set_eyelink_address

pub unsafe extern "C" fn set_eyelink_address(addr: *mut c_char) -> INT16

@ingroup init_eyelink Sets the IP address used for connection to the EyeLink tracker. This is set to "100.1.1.1" in the DLL, but may need to be changed for some network configurations. This must be set before attempting to open a connection to the tracker.

@remarks A "broadcast" address ("255.255.255.255") may be used if the tracker address is not known - this will work only if a single Ethernet card is installed, or if DLL version 2.1 or higher, and the latest tracker software versions (EyeLink I v2.1 or higher, and EyeLink II v1.1 or higher) are installed. @param addr Pointer to a string containing a "dotted" 4-digit IP address. @return \c 0 if success, \c -1 if could not parse address string.

\b Example:

\code

#include 

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

set_eyelink_address("100.1.1.1");

if (eyelink_open())
return -1;
\endcode

\sa \c eyelink_open(), \c eyelink_open_node(), \c text_to_elinkaddr()