#include "../shared/frdi.h"
Go to the source code of this file.
Compounds | |
struct | frdi__host_server |
struct | frdi__host_app |
struct | frdi__host_game |
Functions | |
frdi_host_app * | frdiHostAppNew (frdi_app *app) |
int | frdiHostAppRun (frdi_host_app *self) |
void | frdiHostAppFree (frdi_host_app *self) |
char * | frdiHostAppDisplay (frdi_host_app *self) |
void | frdiHostPV (frdi_host_app *self, char *str) |
void | frdiHostPVF (frdi_host_app *self, char *format, void *arg) |
frdi_connection * | frdiHostServerConnectionNew (frdi_host_app *self, frdi_application *remote) |
void * | frdiHostServerConnectionRecieve (void *arg) |
void | frdiHostConnectionClose (frdi_connection *connection) |
frdi_host_server * | frdiHostServerInitialise (frdi_host_app *self, frdi_connection *connection) |
void | frdiHostServerFinalise (frdi_host_app *self, frdi_host_server *server) |
void | frdiHostServerRecieve (frdi_host_app *self, frdi_connection *connection, frdi_message *message) |
void | frdiHostServerMessageSend (frdi_host_app *self, frdi_host_server *server, frdi_message *message) |
char * | frdiHostServerDisplay (frdi_host_app *self, frdi_host_server *server) |
void | frdiHostDoStuff (frdi_host_app *self) |
void * | frdiHostServerMessageRecieve (frdi_host_app *self, frdi_host_server *server, frdi_message *message) |
void | frdiHostServerMsU (frdi_host_app *self, frdi_host_server *server, frdi_message *old_message) |
void | frdiHostGameSendServer (frdi_host_app *self, frdi_host_game *game, char *str) |
void | frdiHostServerMrD (frdi_host_app *self, frdi_host_server *server, frdi_message *message) |
void | frdiHostServerMrF (frdi_host_app *self, frdi_host_server *server, frdi_message *message) |
void | frdiHostServerMrG (frdi_host_app *self, frdi_host_server *server, frdi_message *message) |
void | frdiHostServerMrK (frdi_host_app *self, frdi_host_server *server, frdi_message *message) |
void | frdiHostServerMrL (frdi_host_app *self, frdi_host_server *server, frdi_message *message) |
void | frdiHostServerMrR (frdi_host_app *self, frdi_host_server *server, frdi_message *message) |
void | frdiHostServerMrU (frdi_host_app *self, frdi_host_server *server, frdi_message *message) |
void | frdiHostServerMrE (frdi_host_app *self, frdi_host_server *server, frdi_message *message, char c) |
void | frdiHostGameReceiveServer (frdi_host_app *self, frdi_host_game *game, char *str) |
frdi_host_game * | frdiHostGameNew (frdi_host_app *self, char *game_id) |
void | frdiHostGameLog (frdi_host_app *self, frdi_host_game *game, char *str) |
void | frdiHostGameFinish (frdi_host_app *self, frdi_host_game *game) |
char * | frdiHostGameDescribe (frdi_host_app *self, frdi_host_game *game) |
char * | frdiHostGameReport (frdi_host_app *self, frdi_host_game *game) |
|
create the object |
|
doesn't exist until app ready to close the main loop. returns EXIT_FAILURE or EXIT_SUCCESS |
|
release the object |
|
return information about this application as a string |
|
print if verbose |
|
print if verbose using format |
|
connect to a named fairdice server app |
|
recieve a message from a client-server connection |
|
on closing the connection, free the stuff we created |
|
register a host-server connection |
|
de-register a host-server connection |
|
recieve a message from a host-server connection |
|
send a message along a host-server connection |
|
return a description of this host-server connection |
|
do stuff |
|
recieve a message from a host-server connection D Description F Find G Game K Keepalive L Link R Remote U Unknown |
|
send a U type message along a host-server connection |
|
Send str back to the server as a game message |
|
Fairdice Host-Server connection message receive : Description CHALLENGE : D is <description> RESPONSE : none ACTION : set description of server CHALLENGE : D request RESPONSE : D is <description> or RESPONSE : D null ACTION : none |
|
Fairdice Host-Server connection message receive : Find CHALLENGE : F varies RESPONSE : varies ACTION : varies |
|
Fairdice Host-Server connection message receive : Game CHALLENGE : G <gamestr> <seperator> <data> RESPONSE : varies ACTION : parse <gamestr> into a frdi_host_game object. pass on to further method |
|
Fairdice Host-Server connection message receive : Keepalive CHALLENGE : K null RESPONSE : none ACTION : none CHALLENGE : K ping request <integer> RESPONSE : K ping response <integer> ACTION : none CHALLENGE : K ping response <integer> RESPONSE : none ACTION : record ping delay CHALLENGE : K time request RESPONSE : K time response <timestamp> ACTION : none CHALLENGE : K time response <timestamp> RESPONSE : none ACTION : synch time |
|
Fairdice Host-Server connection message receive : Link CHALLENGE : L opening RESPONSE : L opened ACTION : none CHALLENGE : L opened RESPONSE : none ACTION : none CHALLENGE : L closing RESPONSE : L closed ACTION : close this end of link CHALLENGE : L closed RESPONSE : none ACTION : close this end of link |
|
Fairdice Host-Server connection message receive : Remote CHALLENGE : R <data> RESPONSE : none ACTION : this is a message sent to us by a host |
|
Fairdice Host-Server connection message receive : Unknown CHALLENGE : U null RESPONSE : none ACTION : report the error CHALLENGE : U <verbatim copy of message server got from us> RESPONSE : none ACTION : report the error |
|
Fairdice Host-Server connection message receive : A Mystery CHALLENGE : <unparsable> RESPONSE : U <unparsable> ACTION : report the error |
|
deal with a game str from the server |
|
create a game object (values get filled in by the create object) |
|
log it |
|
de-register and destroy a game object |
|
describe it |
|
report the outcome of a game to the host in complete terms |