Chimera: chimera_0-9/include/message.h File Reference

- Main Page
- Classes
- Files
- Directories

- File List
- File Members

# message.h File Reference

`#include "key.h"`
`#include "host.h"`
`#include "jrb.h"`

Go to the source code of this file.

## Classes
struct | Message
## Defines
#define | DEFAULT_SEQNUM 0
## Typedefs
typedef void(* | messagehandler_t )(ChimeraState *, Message *)
## Functions
void * | message_init (void *chstate, int port)
void | message_recieved (void *chstate, char *data, int size)
void | message_handler (void *chstate, int type, messagehandler_t func, int ack)
int | message_send (void *chstate, ChimeraHost *host, Message *message, int retry)
Message * | message_create (Key dest, int type, int size, char *payload)

## Define Documentation

#define DEFAULT_SEQNUM 0

## Typedef Documentation

typedef void(* messagehandler_t)(ChimeraState *, Message *)

## Function Documentation

Message* message_create | ( | Key | dest,
|  | int | type,
|  | int | size,
|  | char * | payload
| ) |

void message_handler | ( | void * | chstate,
|  | int | type,
|  | messagehandler_t | func,
|  | int | ack
| ) |

void* message_init | ( | void * | chstate,
|  | int | port
| ) |

void message_recieved | ( | void * | chstate,
|  | char * | data,
|  | int | size
| ) |

int message_send | ( | void * | chstate,
|  | ChimeraHost * | host,
|  | Message * | message,
|  | int | retry
| ) |