Main Page   File List   File Members   Related Pages  

frdi_net.c File Reference

handle the internet connections More...

#include "frdi.h"

Functions

void frdiOpenListener ()
char * frdiConnectionDescribe (frdi_connection *connection)
char * frdiConnectionDescribeOld (frdi_connection *connection)
char * frdiNewRemoteMachineName (frdi_app *self, int socket_descriptor)
char * frdiDotFormToMachineName (frdi_app *self, char *dot_form)
char * frdiMachineNameToDotForm (frdi_app *self, char *machine_name)


Detailed Description

handle the internet connections

Author:
Douglas Reay <douglas-legal@reay.org>
Warning:
At the top level of abstraction what one wants to do is have connections between applications and send and recieve completed messages. If a message is received the info we need to give is: if a message is to be sent the info we need is: We hereby decree that all messages at this layer will be wrapped in "M <size> <data>" for sending, and be unwrapped before being passed on.

<size> is four hex digits (0..65535). Messages larger than that must be chopped up and sent in pieces by a higher level. (This is to stop a single user of a connection tying it up for minutes at a time. It is also convenient to be able to allocate a buffer of that size.)

we also need to set up the connections, know which handler to use for each connection, which error handler to use for problems, and be able to close a connection.

Objects:


Function Documentation

void frdiOpenListener  
 

Start listening on a particular port

char* frdiConnectionDescribe frdi_connection *    connection
 

Describe a socket

char* frdiConnectionDescribeOld frdi_connection *    connection
 

Describe a socket

char* frdiNewRemoteMachineName frdi_app *    self,
int    socket_descriptor
 

derive the dot form char string from the socket descriptor

char* frdiDotFormToMachineName frdi_app *    self,
char *    dot_form
 

convert from a machine name to the dot form

char* frdiMachineNameToDotForm frdi_app *    self,
char *    machine_name
 

convert from the dot form to a machine name


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