NAMD
|
Go to the source code of this file.
Classes | |
struct | IMDheader |
union | netint |
structure used to perform byte swapping operations More... | |
Macros | |
#define | HEADERSIZE 8 |
#define | IMDVERSION 2 |
#define HEADERSIZE 8 |
Definition at line 14 of file imd.C.
Referenced by imd_disconnect(), imd_go(), imd_handshake(), imd_kill(), imd_pause(), imd_recv_header(), imd_recv_header_nolengthswap(), imd_send_energies(), imd_send_fcoords(), imd_send_mdcomm(), and imd_trate().
#define IMDVERSION 2 |
Definition at line 15 of file imd.C.
Referenced by imd_handshake(), and imd_recv_handshake().
Definition at line 60 of file imd.C.
References imd_htonl(), IMDheader::length, and IMDheader::type.
Referenced by imd_disconnect(), imd_go(), imd_handshake(), imd_kill(), imd_pause(), imd_send_energies(), imd_send_fcoords(), imd_send_mdcomm(), and imd_trate().
int imd_disconnect | ( | void * | s | ) |
Definition at line 108 of file imd.C.
References fill_header(), HEADERSIZE, IMD_DISCONNECT, and imd_writen().
|
static |
Definition at line 126 of file imd.C.
References fill_header(), HEADERSIZE, IMD_GO, and imd_writen().
Referenced by imd_recv_handshake().
int imd_handshake | ( | void * | s | ) |
Definition at line 133 of file imd.C.
References fill_header(), HEADERSIZE, IMD_HANDSHAKE, imd_writen(), IMDVERSION, and IMDheader::length.
Referenced by my_imd_connect().
Definition at line 45 of file imd.C.
References netint::b, netint::high, netint::highest, netint::i, netint::low, and netint::lowest.
Referenced by fill_header().
int imd_kill | ( | void * | s | ) |
Definition at line 120 of file imd.C.
References fill_header(), HEADERSIZE, IMD_KILL, and imd_writen().
Definition at line 54 of file imd.C.
References netint::b, netint::high, netint::highest, netint::i, netint::low, and netint::lowest.
Referenced by swap_header().
int imd_pause | ( | void * | s | ) |
Definition at line 114 of file imd.C.
References fill_header(), HEADERSIZE, IMD_PAUSE, and imd_writen().
Definition at line 70 of file imd.C.
References vmdsock_read().
Referenced by imd_recv_energies(), imd_recv_fcoords(), imd_recv_header(), imd_recv_header_nolengthswap(), and imd_recv_mdcomm().
int imd_recv_energies | ( | void * | s, |
IMDEnergies * | energies | ||
) |
Definition at line 231 of file imd.C.
References imd_readn().
Referenced by GlobalMasterIMD::get_vmd_forces().
Definition at line 236 of file imd.C.
References imd_readn().
Referenced by GlobalMasterIMD::get_vmd_forces().
int imd_recv_handshake | ( | void * | s | ) |
Receive header and data.
Definition at line 191 of file imd.C.
References imd_go(), IMD_HANDSHAKE, imd_recv_header_nolengthswap(), IMDVERSION, swap4(), and vmdsock_selread().
Definition at line 214 of file imd.C.
References HEADERSIZE, IMD_IOERROR, imd_readn(), IMDheader::length, swap_header(), and IMDheader::type.
Referenced by GlobalMasterIMD::get_vmd_forces(), and my_imd_connect().
Definition at line 182 of file imd.C.
References HEADERSIZE, IMD_IOERROR, imd_readn(), IMDheader::length, swap_header(), and IMDheader::type.
Referenced by imd_recv_handshake().
Definition at line 225 of file imd.C.
References imd_readn().
Referenced by GlobalMasterIMD::get_vmd_forces().
int imd_send_energies | ( | void * | s, |
const IMDEnergies * | energies | ||
) |
Definition at line 159 of file imd.C.
References fill_header(), HEADERSIZE, IMD_ENERGIES, and imd_writen().
Referenced by GlobalMasterIMD::send_energies().
Definition at line 169 of file imd.C.
References fill_header(), HEADERSIZE, IMD_FCOORDS, and imd_writen().
Referenced by GlobalMasterIMD::send_fcoords().
Definition at line 148 of file imd.C.
References fill_header(), HEADERSIZE, IMD_MDCOMM, and imd_writen().
Definition at line 140 of file imd.C.
References fill_header(), HEADERSIZE, IMD_TRATE, and imd_writen().
Definition at line 89 of file imd.C.
References vmdsock_write().
Referenced by imd_disconnect(), imd_go(), imd_handshake(), imd_kill(), imd_pause(), imd_send_energies(), imd_send_fcoords(), imd_send_mdcomm(), and imd_trate().
|
static |
Definition at line 17 of file imd.C.
Referenced by imd_recv_handshake().
Definition at line 65 of file imd.C.
References imd_ntohl(), IMDheader::length, and IMDheader::type.
Referenced by imd_recv_header(), and imd_recv_header_nolengthswap().