LeapGL/tests/event_injector/emulator-console.c
/* Create a new EmulatorConsole object to connect asynchronously to
 * a given emulator port. Note that this should always succeeds since
 * the connection is asynchronous.
 */
Create a new EmulatorConsole object to connect asynchronously to
a given emulator port. Note that this should always succeeds since
the connection is asynchronous.
Create a new EmulatorConsole object to connect asynchronously to a given emulator port . Note that this should always succeeds since the connection is asynchronous .
EmulatorConsole*
emulatorConsole_new(int port, IoLooper* looper)
{
    EmulatorConsole*  con;
    SockAddress  addr;
    ANEW0(con);
    con->looper = looper;
    con->fd     = -1;
    sock_address_init_inet(&con->address, SOCK_ADDRESS_INET_LOOPBACK, port);
    emulatorConsole_connect(con);
    return con;
}
EmulatorConsole * emulatorConsole_new ( int port , IoLooper * looper ) { EmulatorConsole * con ; SockAddress addr ; ANEW0 ( con ) ; con -> looper = looper ; con -> fd = -1 ; sock_address_init_inet ( & con -> address , SOCK_ADDRESS_INET_LOOPBACK , port ) ; emulatorConsole_connect ( con ) ; return con ; }
Create a new EmulatorConsole object to connect asynchronously to
 a given emulator port.
Create a new EmulatorConsole object to connect asynchronously to a given emulator port .