#include <Basics.H>#include <Generics.H>#include <SRPC.H>#include <MultiSRPC.H>#include <LimService.H>#include <ThreadIO.H>Include dependency graph for TestLimService.C:

Go to the source code of this file.
Classes | |
| struct | ClientData |
| struct | ServerData |
| struct | MiddleArgs |
| class | ServerHandler |
Functions | |
| ostream & | operator<< (ostream &os, const SRPC::failure &f) throw () |
| void | ClientCall (int proc, int id, int count) throw (SRPC::failure) |
| void * | Client_Worker_Thread (void *arg) throw () |
| void * | Client_Start_thread (void *unused) throw () |
| void | ServerProcStart (SRPC *srpc, ServerData *sd) throw (SRPC::failure) |
| void | ServerProcMiddle (SRPC *srpc, ServerData *sd) throw (SRPC::failure) |
| void | ServerProcEnd (SRPC *srpc, ServerData *sd) throw (SRPC::failure) |
| Basics::thread | StartServer () throw (SRPC::failure) |
| 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 | ProcIdStart = 1 |
| const int | ProcIdMiddle = 2 |
| const int | ProcIdEnd = 3 |
| MultiSRPC | client_multi (IntfName) |
| Text | server_host ("localhost") |
| unsigned int | client_thread_count = 10 |
| unsigned int | client_call_count = 1000 |
| unsigned int | server_running = 7 |
| LimService * | ls = 0 |
| Text | program_name |
| void* Client_Start_thread | ( | void * | unused | ) | throw () |
Definition at line 84 of file TestLimService.C.
References Client_Worker_Thread(), ClientCall(), NEW_ARRAY, ProcIdStart, and ClientData::total.
Referenced by main().
Here is the call graph for this function:

Here is the caller graph for this function:

| void* Client_Worker_Thread | ( | void * | arg | ) | throw () |
Definition at line 60 of file TestLimService.C.
References OS::cio(), ClientCall(), OS::ThreadIO::end_err(), ClientData::id, ProcIdEnd, ProcIdMiddle, and OS::ThreadIO::start_err().
Referenced by Client_Start_thread().
Here is the call graph for this function:

Here is the caller graph for this function:

| void ClientCall | ( | int | proc, | |
| int | id, | |||
| int | count | |||
| ) | throw (SRPC::failure) |
Definition at line 36 of file TestLimService.C.
References client_multi, MultiSRPC::End(), IntfVersion, SRPC::recv_end(), SRPC::send_end(), SRPC::send_int(), server_host, MultiSRPC::Start(), and SRPC::start_call().
Here is the call graph for this function:

| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 322 of file TestLimService.C.
References Client_Start_thread(), Basics::thread::fork(), Basics::thread::join(), program_name, seed, StartServer(), and SyntaxError().
Here is the call graph for this function:

| ostream& operator<< | ( | ostream & | os, | |
| const SRPC::failure & | f | |||
| ) | throw () |
Definition at line 22 of file TestLimService.C.
| void ServerProcEnd | ( | SRPC * | srpc, | |
| ServerData * | sd | |||
| ) | throw (SRPC::failure) |
Definition at line 185 of file TestLimService.C.
References SRPC::invalid_parameter, and Basics::OBufStream::str().
Referenced by ServerHandler::call().
Here is the call graph for this function:

Here is the caller graph for this function:

| void ServerProcMiddle | ( | SRPC * | srpc, | |
| ServerData * | sd | |||
| ) | throw (SRPC::failure) |
Definition at line 155 of file TestLimService.C.
References MiddleArgs::count, MiddleArgs::id, SRPC::invalid_parameter, NEW_PTRFREE_CONSTR, and Basics::OBufStream::str().
Referenced by ServerHandler::call().
Here is the call graph for this function:

Here is the caller graph for this function:

| void ServerProcStart | ( | SRPC * | srpc, | |
| ServerData * | sd | |||
| ) | throw (SRPC::failure) |
Definition at line 123 of file TestLimService.C.
References SRPC::invalid_parameter, and Basics::OBufStream::str().
Referenced by ServerHandler::call().
Here is the call graph for this function:

Here is the caller graph for this function:

| Basics::thread StartServer | ( | ) | throw (SRPC::failure) |
Definition at line 285 of file TestLimService.C.
References OS::cio(), OS::ThreadIO::end_out(), LimService::Forked_Run(), IntfName, IntfVersion, ls, NEW, NEW_CONSTR, and OS::ThreadIO::start_out().
Referenced by main().
Here is the call graph for this function:

Here is the caller graph for this function:

| void SyntaxError | ( | char * | msg, | |
| char * | arg = (char *)NULL | |||
| ) | throw () |
Definition at line 306 of file TestLimService.C.
References OS::cio(), OS::ThreadIO::end_err(), program_name, and OS::ThreadIO::start_err().
Here is the call graph for this function:

| unsigned int client_call_count = 1000 |
Definition at line 82 of file TestLimService.C.
Referenced by ClientCall().
| unsigned int client_thread_count = 10 |
Definition at line 81 of file TestLimService.C.
| const int IntfVersion = 1 |
Definition at line 17 of file TestLimService.C.
| LimService* ls = 0 |
Definition at line 238 of file TestLimService.C.
Referenced by SRPC_listener::create(), ExpCache::ExpCache(), init(), LimService_Acceptor(), LimService_StartServer(), LimService_Worker(), main(), Server(), and StartServer().
| const int ProcIdEnd = 3 |
Definition at line 20 of file TestLimService.C.
Referenced by ServerHandler::call(), and Client_Worker_Thread().
| const int ProcIdMiddle = 2 |
Definition at line 19 of file TestLimService.C.
Referenced by ServerHandler::call(), and Client_Worker_Thread().
| const int ProcIdStart = 1 |
Definition at line 18 of file TestLimService.C.
Referenced by ServerHandler::call(), and Client_Start_thread().
Definition at line 304 of file TestLimService.C.
| Text server_host("localhost") |
Referenced by ClientCall().
| unsigned int server_running = 7 |
Definition at line 236 of file TestLimService.C.
1.5.1