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

TestBigXfer.C File Reference

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

Go to the source code of this file.

Functions

void SyntaxError (const char *msg) throw ()
ostream & operator<< (ostream &os, const SRPC::failure &f) throw ()
void ClientCall (SRPC *srpc, int numIterations, unsigned len) throw (SRPC::failure)
void Client (int numIterations, const char *server) throw ()
void ServerFailureCallback (SRPC *srpc, const SRPC::failure &f, void *arg) throw ()
void Proc1 (SRPC *srpc) throw (SRPC::failure)
void ServerCallback (SRPC *srpc, int procId, void *arg) throw (SRPC::failure)
void Server () throw ()
int main (int argc, char *argv[])

Variables

const Text IntfName ("1234")
const int IntfVersion = 1
const int ProcId1 = 1
const unsigned FirstSize = 1U << 1
const unsigned LastSize = 1U << 20
const int NumIterations = 8


Function Documentation

void Client int  numIterations,
const char *  server
throw ()
 

Definition at line 123 of file TestBigXfer.C.

References ClientCall(), MultiSRPC::End(), FirstSize, IntfName, LastSize, and MultiSRPC::Start().

void ClientCall SRPC srpc,
int  numIterations,
unsigned  len
throw (SRPC::failure)
 

Definition at line 94 of file TestBigXfer.C.

References IntfVersion, Basics::mutex::lock(), NEW_PTRFREE_ARRAY, ProcId1, and Basics::mutex::unlock().

Referenced by Client().

int main int  argc,
char *  argv[]
 

Definition at line 206 of file TestBigXfer.C.

References Text::cchars(), Client(), NumIterations, Server(), and SyntaxError().

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

Definition at line 81 of file TestBigXfer.C.

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

void Proc1 SRPC srpc  )  throw (SRPC::failure)
 

Definition at line 150 of file TestBigXfer.C.

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

Referenced by ServerCallback().

void Server  )  throw ()
 

Definition at line 189 of file TestBigXfer.C.

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

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

Definition at line 180 of file TestBigXfer.C.

References Proc1(), and ProcId1.

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

Definition at line 144 of file TestBigXfer.C.

Referenced by Server().

void SyntaxError const char *  msg  )  throw ()
 

Definition at line 74 of file TestBigXfer.C.


Variable Documentation

const unsigned FirstSize = 1U << 1
 

Definition at line 70 of file TestBigXfer.C.

Referenced by Client().

const Text IntfName("1234")
 

const int IntfVersion = 1
 

Definition at line 63 of file TestBigXfer.C.

const unsigned LastSize = 1U << 20
 

Definition at line 71 of file TestBigXfer.C.

Referenced by Client().

const int NumIterations = 8
 

Definition at line 72 of file TestBigXfer.C.

Referenced by main().

const int ProcId1 = 1
 

Definition at line 64 of file TestBigXfer.C.

Referenced by ClientCall(), and ServerCallback().


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