Main Page   File List   File Members   Related Pages  

frdi_net_message.c File Reference

the message object More...

#include "frdi.h"

Functions

void frdiMessageSetConnection (frdi_message *message, frdi_connection *connection)
frdi_connection * frdiMessageGetConnection (frdi_message *message)
void frdiMessageSend (frdi_message *message)
void frdiMessageReceive (frdi_message *message)
frdi_message * frdiMessageNew (int size, void *data)
frdi_message * frdiMessageNewFromString (char *str)
void frdiMessageSetSize (frdi_message *message, int size)
void frdiMessageSetData (frdi_message *message, void *data)
void frdiMessageFree (frdi_message *message)
void * frdiMessageGetData (frdi_message *message)
int frdiMessageGetSize (frdi_message *message)
void frdiMessageDisplay (frdi_message *message)


Detailed Description

the message object

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

Function Documentation

void frdiMessageSetConnection frdi_message *    message,
frdi_connection *    connection
 

associate a connection with a message

frdi_connection* frdiMessageGetConnection frdi_message *    message
 

get the connection associated with a message

void frdiMessageSend frdi_message *    message
 

send a message

void frdiMessageReceive frdi_message *    message
 

receive a message

frdi_message* frdiMessageNew int    size,
void *    data
 

obtain a message ready for use

frdi_message* frdiMessageNewFromString char *    str
 

fill frdiMessageNew from a null terminated char *

void frdiMessageSetSize frdi_message *    message,
int    size
 

helps create a message

void frdiMessageSetData frdi_message *    message,
void *    data
 

helps create a message

void frdiMessageFree frdi_message *    message
 

release a message for destruction / re-use

void* frdiMessageGetData frdi_message *    message
 

destroy a message

int frdiMessageGetSize frdi_message *    message
 

destroy a message

void frdiMessageDisplay frdi_message *    message
 

display a null terminate string message to stdout


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