project_files/frontlib/ipc/gameconn.h
changeset 7224 5143861c83bd
parent 7179 f84805e6df03
child 7230 240620f46dd7
equal deleted inserted replaced
7221:8d04e85ca204 7224:5143861c83bd
    31  * Perform I/O operations and call callbacks if something interesting happens.
    31  * Perform I/O operations and call callbacks if something interesting happens.
    32  * Should be called regularly.
    32  * Should be called regularly.
    33  */
    33  */
    34 void flib_gameconn_tick(flib_gameconn *conn);
    34 void flib_gameconn_tick(flib_gameconn *conn);
    35 
    35 
    36 // TODO: Not needed yet, only for netgames
    36 int flib_gameconn_send_enginemsg(flib_gameconn *conn, uint8_t *data, int len);
    37 /*
    37 int flib_gameconn_send_textmsg(flib_gameconn *conn, int msgtype, const char *msg);
    38 flib_gameconn_send_enginemsg(flib_gameconn conn, uint8_t *data, int len);
    38 int flib_gameconn_send_chatmsg(flib_gameconn *conn, const char *playername, const char *msg);
    39 flib_gameconn_send_textmsg(flib_gameconn conn, int msgtype, const char *msg);
       
    40 flib_gameconn_send_chatmsg(flib_gameconn conn, const char *playername, const char *msg);
       
    41 */
       
    42 
    39 
    43 /**
    40 /**
    44  * handleConnect(void *context)
    41  * handleConnect(void *context)
    45  */
    42  */
    46 void flib_gameconn_onConnect(flib_gameconn *conn, void (*callback)(void* context), void* context);
    43 void flib_gameconn_onConnect(flib_gameconn *conn, void (*callback)(void* context), void* context);