N-sim
Emulation and simulation of
Wireless Sensor Networks



   Home


   Project Page


   Download


   CVS



   Installation


   Configuration


   Plug-ins




 Hosted by
SourceForge.net Logo

/home/brennan/n-sim/OrbisQuartus/server/mini_mpi-internal.h File Reference

#include <netinet/in.h>
#include <arpa/inet.h>

Go to the source code of this file.

Classes

union  socket_ptr_t
struct  task_handle

Defines

#define MAX_MTU   1000

Typedefs

typedef task_handle task_t

Functions

void string_to_tasks (int count, char *str, task_t *head)
int type_size (MPI_Datatype type)
int buffer_to_char (char *string, int len, void *buf, int count, MPI_Datatype type)
int char_to_buffer (void *buf, int count, MPI_Datatype type, char *string)


Define Documentation

#define MAX_MTU   1000
 

Definition at line 51 of file mini_mpi-internal.h.

Referenced by MPI_Init(), and rcv_ctl_commands().


Typedef Documentation

typedef struct task_handle task_t
 


Function Documentation

int buffer_to_char char *  string,
int  len,
void *  buf,
int  count,
MPI_Datatype  type
 

Definition at line 115 of file mini_mpi.c.

References MPI_BYTE, MPI_CHAR, and MPI_UNSIGNED_SHORT.

Referenced by MPI_Bcast(), MPI_Isend(), and MPI_Send().

int char_to_buffer void *  buf,
int  count,
MPI_Datatype  type,
char *  string
 

Todo:
implement char_to_buffer (convert string to MPI msg)

Definition at line 218 of file mini_mpi.c.

Referenced by MPI_Irecv(), and MPI_Recv().

void string_to_tasks int  count,
char *  str,
task_t head
 

Todo:
FIXME incompatable with L4, just store char[16]?

Definition at line 52 of file mini_mpi.c.

Referenced by MPI_Init().

int type_size MPI_Datatype  type  ) 
 

Definition at line 72 of file mini_mpi.c.

References MPI_BYTE, MPI_CHAR, MPI_DOUBLE, MPI_FLOAT, MPI_INT, MPI_LONG, MPI_LONG_DOUBLE, MPI_PACKED, MPI_SHORT, MPI_UNSIGNED_INT, MPI_UNSIGNED_LONG, and MPI_UNSIGNED_SHORT.

Referenced by MPI_Bcast(), MPI_Isend(), and MPI_Send().


© 2007, Los Alamos National Security, LLC.