ProtoMol - an object-oriented component based framework for Molecular Dynamics simulations.

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

ProtoMol::IMD Namespace Reference


Classes

struct  IMDEnergies
struct  IMDheader
struct  netint

Typedefs

typedef TypeSelection::Int<
4 >::type 
int32

Enumerations

enum  IMDType {
  IMD_DISCONNECT,
  IMD_ENERGIES,
  IMD_FCOORDS,
  IMD_GO,
  IMD_HANDSHAKE,
  IMD_KILL,
  IMD_MDCOMM,
  IMD_PAUSE,
  IMD_TRATE,
  IMD_IOERROR
}

Functions

void swap4 (char *data, int ndata)
int32 imd_htonl (int32 h)
int32 imd_ntohl (int32 n)
void fill_header (IMDheader *header, IMDType type, int32 length)
void swap_header (IMDheader *header)
int32 imd_readn (void *s, char *ptr, int32 n)
int32 imd_writen (void *s, const char *ptr, int32 n)
int imd_disconnect (void *s)
int imd_pause (void *s)
int imd_kill (void *s)
int imd_go (void *s)
int imd_handshake (void *s)
int imd_trate (void *s, int32 rate)
int imd_send_mdcomm (void *s, int32 n, const int32 *indices, const float *forces)
int imd_send_energies (void *s, const IMDEnergies *energies)
int imd_send_fcoords (void *s, int32 n, const float *coords)
IMDType imd_recv_header_nolengthswap (void *s, int32 *length)
int imd_recv_handshake (void *s)
IMDType imd_recv_header (void *s, int32 *length)
int imd_recv_mdcomm (void *s, int32 n, int32 *indices, float *forces)
int imd_recv_energies (void *s, IMDEnergies *energies)
int imd_recv_fcoords (void *s, int32 n, float *coords)
int vmdsock_init (void)
void * vmdsock_create (void)
int vmdsock_connect (void *v, const char *host, int port)
int vmdsock_bind (void *v, int port)
int vmdsock_listen (void *v)
void * vmdsock_accept (void *v)
int vmdsock_write (void *v, const void *buf, int len)
int vmdsock_read (void *v, void *buf, int len)
void vmdsock_destroy (void *v)
int vmdsock_selread (void *v, int sec)
int vmdsock_selwrite (void *v, int sec)


Typedef Documentation

typedef TypeSelection::Int<4>::type ProtoMol::IMD::int32
 


Enumeration Type Documentation

enum ProtoMol::IMD::IMDType
 

Enumeration values:
IMD_DISCONNECT 
IMD_ENERGIES 
IMD_FCOORDS 
IMD_GO 
IMD_HANDSHAKE 
IMD_KILL 
IMD_MDCOMM 
IMD_PAUSE 
IMD_TRATE 
IMD_IOERROR 


Function Documentation

void fill_header IMDheader *  header,
IMDType  type,
int32  length
[static]
 

int ProtoMol::IMD::imd_disconnect void *  s  ) 
 

Send simple messages - these consist of a header with no subsequent data.

int imd_go void *  s  )  [static]
 

int ProtoMol::IMD::imd_handshake void *  s  ) 
 

int32 imd_htonl int32  h  )  [static]
 

int ProtoMol::IMD::imd_kill void *  s  ) 
 

int32 imd_ntohl int32  n  )  [static]
 

int ProtoMol::IMD::imd_pause void *  s  ) 
 

int32 imd_readn void *  s,
char *  ptr,
int32  n
[static]
 

int ProtoMol::IMD::imd_recv_energies void *  s,
IMDEnergies *  energies
 

int ProtoMol::IMD::imd_recv_fcoords void *  s,
int32  n,
float *  coords
 

int ProtoMol::IMD::imd_recv_handshake void *   ) 
 

recv_handshake returns 0 if server and client have the same relative endianism; returns 1 if they have opposite endianism, and -1 if there was an error in the handshake process.

IMDType ProtoMol::IMD::imd_recv_header void *  s,
int32 *  length
 

IMDType imd_recv_header_nolengthswap void *  s,
int32 *  length
 

int ProtoMol::IMD::imd_recv_mdcomm void *  s,
int32  n,
int32 *  indices,
float *  forces
 

int ProtoMol::IMD::imd_send_energies void *  s,
const IMDEnergies *  energies
 

int ProtoMol::IMD::imd_send_fcoords void *  s,
int32  n,
const float *  coords
 

int ProtoMol::IMD::imd_send_mdcomm void *  s,
int32  n,
const int32 *  indices,
const float *  forces
 

int ProtoMol::IMD::imd_trate void *  s,
int32  rate
 

int32 imd_writen void *  s,
const char *  ptr,
int32  n
[static]
 

void swap4 char *  data,
int  ndata
[static]
 

void swap_header IMDheader *  header  )  [static]
 

void * ProtoMol::IMD::vmdsock_accept void *  v  ) 
 

int ProtoMol::IMD::vmdsock_bind void *  v,
int  port
 

int ProtoMol::IMD::vmdsock_connect void *  v,
const char *  host,
int  port
 

void * ProtoMol::IMD::vmdsock_create void   ) 
 

void ProtoMol::IMD::vmdsock_destroy void *  v  ) 
 

int ProtoMol::IMD::vmdsock_init void   ) 
 

int ProtoMol::IMD::vmdsock_listen void *  v  ) 
 

int ProtoMol::IMD::vmdsock_read void *  v,
void *  buf,
int  len
 

int ProtoMol::IMD::vmdsock_selread void *  v,
int  sec
 

int ProtoMol::IMD::vmdsock_selwrite void *  v,
int  sec
 

int ProtoMol::IMD::vmdsock_write void *  v,
const void *  buf,
int  len
 

Last update: . GNU GENERAL PUBLIC LICENSE, copyrighted by the University of Notre Dame and the University of Bergen, Norway.