Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

RemoteSocket Class Reference

#include <remotesocket.h>

Inheritance diagram for RemoteSocket::

TCPSocket DataClient DataServer DataServerMPI List of all members.

Public Methods

 RemoteSocket ()
 Server. More...

 ~RemoteSocket ()
int SetPrintFlag (int flag)
int SendLine (char *fmt,...)
int RecvLine (char *line)
int PrintRecvLine ()
int SendFile (char *filename)
int RecvFile (char *filename)
template<class Etype> int SendVar (Etype a)
template<class Etype> int RecvVar (Etype *a)
template<class Etype> Etype RecvVar ()
int SendArrayGeneric (void *a, int totsize, int elemsize)
int RecvArrayGeneric (void *a, int totsize, int elemsize)
template<class Etype> int SendArray1D (Etype *a, int n1)
template<class Etype> int RecvArray1D (Etype *a, int n1)
template<class Etype> int SendArray2D (Etype **a, int n1, int n2)
template<class Etype> int RecvArray2D (Etype **a, int n1, int n2)
template<class Etype> int SendArray3D (Etype ***a, int n1, int n2, int n3)
template<class Etype> int RecvArray3D (Etype ***a, int n1, int n2, int n3)
template<class Etype> int SendArray4D (Etype ****a, int n1, int n2, int n3, int n4)
template<class Etype> int RecvArray4D (Etype ****a, int n1, int n2, int n3, int n4)
template<class myStruct> double RecvStruct (myStruct *S, Semaphore *sem=NULL)
template<class myStruct> int SendStruct (myStruct *S, Semaphore *sem=NULL)

Protected Attributes

int print_flag

Constructor & Destructor Documentation

RemoteSocket::RemoteSocket   [inline]
 

Server.

Definition at line 36 of file remotesocket.h.

References print_flag.

RemoteSocket::~RemoteSocket   [inline]
 

Definition at line 37 of file remotesocket.h.


Member Function Documentation

int RemoteSocket::PrintRecvLine  
 

Definition at line 44 of file remotesocket.cc.

References RecvLine().

template<class Etype>
int RemoteSocket::RecvArray1D Etype *    a,
int    n1
[inline]
 

Definition at line 28 of file 1Darray.h.

References ALLOC1D(), FREE1D(), and TCPSocket::RecvBytes().

Referenced by DataServer::Register_Dynamic_1D_Array().

template<class Etype>
int RemoteSocket::RecvArray2D Etype **    a,
int    n1,
int    n2
[inline]
 

Definition at line 32 of file 2Darray.h.

References ALLOC1D(), FREE1D(), and TCPSocket::RecvBytes().

Referenced by DataServer::Register_Dynamic_2D_Array().

template<class Etype>
int RemoteSocket::RecvArray3D Etype ***    a,
int    n1,
int    n2,
int    n3
[inline]
 

Definition at line 33 of file 3Darray.h.

References ALLOC1D(), FREE1D(), and TCPSocket::RecvBytes().

Referenced by DataServer::Register_Dynamic_3D_Array().

template<class Etype>
int RemoteSocket::RecvArray4D Etype ****    a,
int    n1,
int    n2,
int    n3,
int    n4
[inline]
 

Definition at line 34 of file 4Darray.h.

References ALLOC1D(), FREE1D(), and TCPSocket::RecvBytes().

Referenced by DataServer::Register_Dynamic_4D_Array().

int RemoteSocket::RecvArrayGeneric void *    a,
int    totsize,
int    elemsize
[inline]
 

Definition at line 70 of file dataarray.h.

References TCPSocket::RecvBytes().

Referenced by DataServer::Register_Static_Array().

int RemoteSocket::RecvFile char *    filename
 

Definition at line 83 of file remotesocket.cc.

References ALLOC1D(), FREE1D(), and TCPSocket::RecvBytes().

int RemoteSocket::RecvLine char *    line
 

Definition at line 31 of file remotesocket.cc.

References TCPSocket::RecvBytes().

Referenced by DataServer::GetKeyword(), and PrintRecvLine().

template<class myStruct>
double RemoteSocket::RecvStruct myStruct *    S,
Semaphore   sem = NULL
 

Referenced by DataClient::RecvKeyTable(), and DataServer::Register_Structure().

template<class Etype>
Etype RemoteSocket::RecvVar   [inline]
 

Definition at line 31 of file dataarray.h.

template<class Etype>
int RemoteSocket::RecvVar Etype *    a
 

Definition at line 39 of file dataarray.h.

References TCPSocket::RecvBytes().

Referenced by DataServer::Register_Variable().

template<class Etype>
int RemoteSocket::SendArray1D Etype *    a,
int    n1
[inline]
 

Definition at line 9 of file 1Darray.h.

References ALLOC1D(), FREE1D(), and TCPSocket::SendBytes().

Referenced by DataServer::Register_Dynamic_1D_Array().

template<class Etype>
int RemoteSocket::SendArray2D Etype **    a,
int    n1,
int    n2
[inline]
 

Definition at line 9 of file 2Darray.h.

References ALLOC1D(), FREE1D(), and TCPSocket::SendBytes().

Referenced by DataServer::Register_Dynamic_2D_Array().

template<class Etype>
int RemoteSocket::SendArray3D Etype ***    a,
int    n1,
int    n2,
int    n3
[inline]
 

Definition at line 9 of file 3Darray.h.

References ALLOC1D(), FREE1D(), and TCPSocket::SendBytes().

Referenced by DataServer::Register_Dynamic_3D_Array().

template<class Etype>
int RemoteSocket::SendArray4D Etype ****    a,
int    n1,
int    n2,
int    n3,
int    n4
[inline]
 

Definition at line 9 of file 4Darray.h.

References ALLOC1D(), FREE1D(), and TCPSocket::SendBytes().

Referenced by DataServer::Register_Dynamic_4D_Array().

int RemoteSocket::SendArrayGeneric void *    a,
int    totsize,
int    elemsize
[inline]
 

Definition at line 56 of file dataarray.h.

References ALLOC1D(), FREE1D(), and TCPSocket::SendBytes().

Referenced by DataServer::Register_Static_Array().

int RemoteSocket::SendFile char *    filename
 

Definition at line 54 of file remotesocket.cc.

References ALLOC1D(), FREE1D(), getFileSize(), and TCPSocket::SendBytes().

int RemoteSocket::SendLine char *    fmt,
...   
 

Definition at line 10 of file remotesocket.cc.

References TCPSocket::SendBytes().

template<class myStruct>
int RemoteSocket::SendStruct myStruct *    S,
Semaphore   sem = NULL
 

Referenced by DataServer::Register_Structure().

template<class Etype>
int RemoteSocket::SendVar Etype    a
 

Definition at line 14 of file dataarray.h.

References TCPSocket::SendBytes().

Referenced by DataServer::Register_Dynamic_1D_Array(), DataServer::Register_Dynamic_2D_Array(), DataServer::Register_Dynamic_3D_Array(), DataServer::Register_Dynamic_4D_Array(), DataServer::Register_Static_Array(), and DataServer::Register_Variable().

int RemoteSocket::SetPrintFlag int    flag [inline]
 

Reimplemented in DataClient.

Definition at line 38 of file remotesocket.h.

References print_flag.

Referenced by DataClient::SetPrintFlag().


Member Data Documentation

int RemoteSocket::print_flag [protected]
 

Definition at line 32 of file remotesocket.h.

Referenced by RemoteSocket(), and SetPrintFlag().


The documentation for this class was generated from the following files:
Generated on Sun Jun 16 17:36:52 2002 for POSSE: Portable Object-oriented Scientific Steering Environment by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001