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

TestNullSRPC.C File Reference

#include <Basics.H>
#include <SRPC.H>
#include <MultiSRPC.H>
#include <LimService.H>

Go to the source code of this file.

Typedefs

typedef char * String

Functions

ostream & operator<< (ostream &os, const SRPC::failure &f) throw ()
void ClientCall (SRPC *srpc, int blocks, int sz, String *buff) throw (SRPC::failure)
void Client (int blocks, int sz, int numCalls, char *hostname) throw ()
void ServerFailureCallback (SRPC *srpc, const SRPC::failure &f, void *arg) throw ()
void ServerWork (const ServerArgs *args) throw ()
void ServerProc1 (SRPC *srpc, const ServerArgs *args) throw (SRPC::failure)
void ServerCallback (SRPC *srpc, int procId, void *arg) throw (SRPC::failure)
void Server (int blocks, int sz) throw ()
void SyntaxError (char *msg, char *arg=(char *) NULL) throw ()
int main (int argc, char *argv[])

Variables

const Text IntfName ("1235")
const int IntfVersion = 1
const int ProcId1 = 1


Typedef Documentation

typedef char* String
 

Definition at line 70 of file TestNullSRPC.C.


Function Documentation

void Client (  int  blocks,
int  sz,
int  numCalls,
char *  hostname
)  throw ()
 

Definition at line 116 of file TestNullSRPC.C.

References ClientCall(), MultiSRPC::End(), IntfName, NEW_ARRAY, NEW_PTRFREE_ARRAY, and MultiSRPC::Start().

void ClientCall (  SRPC *  srpc,
int  blocks,
int  sz,
String *  buff
)  throw (SRPC::failure)
 

Definition at line 87 of file TestNullSRPC.C.

References IntfVersion, and ProcId1.

int main (  int  argc,
char *  argv[]
) 
 

Definition at line 254 of file TestNullSRPC.C.

References Client(), Server(), and SyntaxError().

ostream& operator<< (  ostream &  os,
const SRPC::failure &  f
)  throw ()
 

Definition at line 72 of file TestNullSRPC.C.

References Basics::mutex::lock(), and Basics::mutex::unlock().

void Server (  int  blocks,
int  sz
)  throw ()
 

Definition at line 222 of file TestNullSRPC.C.

References LimService::Forked_Run(), IntfName, IntfVersion, Basics::thread::join(), Basics::mutex::lock(), NEW_CONSTR, ServerCallback(), ServerFailureCallback(), and Basics::mutex::unlock().

void ServerCallback (  SRPC *  srpc,
int  procId,
void *  arg
)  throw (SRPC::failure)
 

Definition at line 212 of file TestNullSRPC.C.

References ProcId1, and ServerProc1().

void ServerFailureCallback (  SRPC *  srpc,
const SRPC::failure &  f,
void *  arg
)  throw ()
 

Definition at line 166 of file TestNullSRPC.C.

void ServerProc1 (  SRPC *  srpc,
const ServerArgs *  args
)  throw (SRPC::failure)
 

Definition at line 181 of file TestNullSRPC.C.

References ServerWork().

Referenced by ServerCallback().

void ServerWork (  const ServerArgs *  args  )  throw ()
 

Definition at line 172 of file TestNullSRPC.C.

Referenced by ServerProc1().

void SyntaxError (  char *  msg,
char *  arg = (char *)NULL
)  throw ()
 

Definition at line 242 of file TestNullSRPC.C.


Variable Documentation

const Text IntfName("1235")
 

const int IntfVersion = 1
 

Definition at line 64 of file TestNullSRPC.C.

const int ProcId1 = 1
 

Definition at line 65 of file TestNullSRPC.C.


Generated on Mon May 8 00:49:05 2006 for Vesta by  doxygen 1.4.2