Main Page   File List   File Members   Related Pages  

frdi_server_cmr.c File Reference

client message receive More...

#include "frdi_server.h"

Functions

void frdiServerClientMrD (frdi_server_app *self, frdi_server_host *host, frdi_server_client *client, frdi_message *message)
frdi_server_host * frdiServerHostFromGameId (frdi_server_app *self, frdi_server_client *client, char *game_id)
void frdiServerClientMrG (frdi_server_app *self, frdi_server_host *host, frdi_server_client *client, frdi_message *message)
void frdiServerGameSendClient (frdi_server_app *self, frdi_server_game *game, frdi_server_client *client, char *str)
void frdiServerGameSendClients (frdi_server_app *self, frdi_server_game *game, char *str)
void frdiServerGameSendUsers (frdi_server_app *self, frdi_server_game *game, frdi_list *user_list, char *str)
void frdiServerClientMrK (frdi_server_app *self, frdi_server_host *host, frdi_server_client *client, frdi_message *message)
void frdiServerClientMrL (frdi_server_app *self, frdi_server_host *host, frdi_server_client *client, frdi_message *message)
void frdiServerClientMrM (frdi_server_app *self, frdi_server_host *host, frdi_server_client *client, frdi_message *message)
void frdiServerClientMrR (frdi_server_app *self, frdi_server_host *host, frdi_server_client *client, frdi_message *message)
void frdiServerClientMrU (frdi_server_app *self, frdi_server_host *host, frdi_server_client *client, frdi_message *message)
void frdiServerClientMrV (frdi_server_app *self, frdi_server_host *host, frdi_server_client *client, frdi_message *message)
void frdiServerClientMrE (frdi_server_app *self, frdi_server_host *host, frdi_server_client *client, frdi_message *message, char c)


Detailed Description

client message receive

Author:
Douglas Reay <douglas-legal@reay.org>
Warning:

Function Documentation

void frdiServerClientMrD frdi_server_app *    self,
frdi_server_host *    host,
frdi_server_client *    client,
frdi_message *    message
 

Fairdice Client-Server connection message receive : Description CHALLENGE : D is <description> RESPONSE : none ACTION : set description of client

CHALLENGE : D request RESPONSE : D is <description> or RESPONSE : D null ACTION : none

frdi_server_host* frdiServerHostFromGameId frdi_server_app *    self,
frdi_server_client *    client,
char *    game_id
 

find a host with a game whose id matches

void frdiServerClientMrG frdi_server_app *    self,
frdi_server_host *    host,
frdi_server_client *    client,
frdi_message *    message
 

Fairdice Client-Server connection message receive : Game

CHALLENGE : G <gamestr> <seperator> <data> RESPONSE : varies ACTION : parse <gamestr> into a frdi_server_game object. pass on to further method

void frdiServerGameSendClient frdi_server_app *    self,
frdi_server_game *    game,
frdi_server_client *    client,
char *    str
 

Send str back to a client as a game message

void frdiServerGameSendClients frdi_server_app *    self,
frdi_server_game *    game,
char *    str
 

Send str back to all client as a game message

void frdiServerGameSendUsers frdi_server_app *    self,
frdi_server_game *    game,
frdi_list *    user_list,
char *    str
 

Send str back to all listed users

void frdiServerClientMrK frdi_server_app *    self,
frdi_server_host *    host,
frdi_server_client *    client,
frdi_message *    message
 

Fairdice Client-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

void frdiServerClientMrL frdi_server_app *    self,
frdi_server_host *    host,
frdi_server_client *    client,
frdi_message *    message
 

Fairdice Client-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

void frdiServerClientMrM frdi_server_app *    self,
frdi_server_host *    host,
frdi_server_client *    client,
frdi_message *    message
 

Fairdice Client-Server connection message receive : Mode

CHALLENGE : M auth <data> RESPONSE : varies ACTION : pass on to authentication negotiation method

CHALLENGE : M encrypt <data> RESPONSE : varies ACTION : pass on to encryption negotiation method

CHALLENGE : M encode <data> RESPONSE : varies ACTION : pass on to data encoding negotiation method

void frdiServerClientMrR frdi_server_app *    self,
frdi_server_host *    host,
frdi_server_client *    client,
frdi_message *    message
 

Fairdice Client-Server connection message receive : Remote

CHALLENGE : R <data> RESPONSE : none ACTION : pass on verbatim along the host (keeping the R prefix)

void frdiServerClientMrU frdi_server_app *    self,
frdi_server_host *    host,
frdi_server_client *    client,
frdi_message *    message
 

Fairdice Client-Server connection message receive : Unknown

CHALLENGE : U null RESPONSE : none ACTION : report the error

CHALLENGE : U <verbatim copy of message client got from us> RESPONSE : none ACTION : report the error

void frdiServerClientMrV frdi_server_app *    self,
frdi_server_host *    host,
frdi_server_client *    client,
frdi_message *    message
 

Fairdice Client-Server connection message receive : Version

CHALLENGE : V request RESPONSE : V offer <number selection> ACTION : none

CHALLENGE : V offer <number selection> RESPONSE : V select <number> or RESPONSE : V unsupported ACTION : none

CHALLENGE : V select <number> RESPONSE : none or RESPONSE : V unsupported ACTION : none

where <number> is a positive integer identifying a specific version of the server-client link protocol.

where <number range> is "<number>-<number>"

where <number selection> is a comma seperated list of <number> and or <number range>

for example 1,3-5,7

note: implementation incomplete.

void frdiServerClientMrE frdi_server_app *    self,
frdi_server_host *    host,
frdi_server_client *    client,
frdi_message *    message,
char    c
 

Fairdice Client-Server connection message receive : A Mystery

CHALLENGE : <unparsable> RESPONSE : U <unparsable> ACTION : report the error


Generated on Wed Aug 18 13:24:05 2004 for Project Fairdice by doxygen1.2.18