#include <Basics.H>
#include <SRPC.H>
#include <MultiSRPC.H>
Go to the source code of this file.
Typedefs | |
typedef SRPC * | SRPCp |
Functions | |
void | new_test (const Text &ident) |
void | ok () |
void | print_connection (SRPC &s) |
void | fatal (SRPC::failure f) |
void | die (char *m) |
void | wait_for_server () |
void | init_random () |
Basics::int16 | rand16 () |
Basics::int32 | rand32 () |
Basics::int32 | rand64 () |
void | init_arrays () |
void | C_Add2 (SRPC &s) |
void | S_Add2 (SRPC &s) |
void | C_Add2f (SRPC &s) |
void | S_Add2f (SRPC &s) |
void | C_Addna (SRPC &s) |
void | S_Addna (SRPC &s) |
void | C_Addnf (SRPC &s) |
void | S_Addnf (SRPC &s) |
void | C_Addnfp (SRPC &s) |
void | S_Addnfp (SRPC &s) |
void | C_Cat2 (SRPC &s) |
void | S_Cat2 (SRPC &s) |
void | C_Catna (SRPC &s) |
void | S_Catna (SRPC &s) |
void | C_Catnf (SRPC &s) |
void | S_Catnf (SRPC &s) |
void | C_Cat2T (SRPC &s) |
void | S_Cat2T (SRPC &s) |
void | C_CatnT (SRPC &s) |
void | S_CatnT (SRPC &s) |
void | C_Seq1 (SRPC &s) |
void | S_Seq1 (SRPC &s) |
void | C_Seq2 (SRPC &s) |
void | S_Seq2 (SRPC &s) |
void | C_Add2_64 (SRPC &s) |
void | S_Add2_64 (SRPC &s) |
void | C_Add_Int16Array (SRPC &s) |
void | S_Add_Int16Array (SRPC &s) |
void | C_Add_Int32Array (SRPC &s) |
void | S_Add_Int32Array (SRPC &s) |
void | C_Add_Int64Array (SRPC &s) |
void | S_Add_Int64Array (SRPC &s) |
void | C_Bool (SRPC &s) |
void | S_Bool (SRPC &s) |
void | C_Fail1 (SRPC &s) |
void | S_Fail1 (SRPC &s) |
void | C_Conn2 (const char *server_host) |
void | S_Conn2 () |
void | C_Conn3 (const char *server_host) |
void | S_Conn3 () |
void | C_Conn4 (const char *server_host) |
void | S_Conn4 () |
void | C_Conn5 (const char *server_host) |
void | S_Conn5 () |
void | C_Conn6 (const char *server_host) |
void | S_Conn6 () |
void | C_Conn7 (const char *server_host) |
void | S_Conn7 () |
void | C_Multi1 (const char *server_host) |
void | S_Multi1 () |
void | be_client (const char *server_host) |
void | be_server () |
void | init () |
int | main (int argc, char *argv[]) |
Variables | |
const Text | CLIENT_PROG = "TestClient" |
const Text | SERVER_PROG = "TestServer" |
const Text | INTERFACE_1 = "9873" |
int | ints [] = {17, -12, 43, 95, 0, 301, 768, -903, 1017, 3, 4097} |
char * | chars [] = {"Hello,", " there", " big", " boy", "."} |
float | floats [] = {42.525, 18.0, -83.5, 31.25} |
int | port_nums [] = {5678, 9876, 11234} |
const int | nports = sizeof(port_nums) / sizeof(int) |
Text | ports [nports] |
int | minor |
Basics::int16 | int16s [10] |
Basics::int32 | int32s [10] |
Basics::int64 | int64s [10] |
|
Definition at line 951 of file TestSRPC.C. |
|
Definition at line 1016 of file TestSRPC.C. References C_Add2(), C_Add2_64(), C_Add2f(), C_Add_Int16Array(), C_Add_Int32Array(), C_Add_Int64Array(), C_Addna(), C_Addnf(), C_Addnfp(), C_Bool(), C_Cat2(), C_Cat2T(), C_Catna(), C_Catnf(), C_CatnT(), C_Conn2(), C_Conn3(), C_Conn4(), C_Conn5(), C_Conn6(), C_Conn7(), C_Fail1(), C_Multi1(), C_Seq1(), C_Seq2(), SRPC::caller, fatal(), init_arrays(), init_random(), new_test(), ok(), print_connection(), and wait_for_server(). Referenced by main(). |
|
Definition at line 1075 of file TestSRPC.C. References SRPC::callee, fatal(), new_test(), ok(), S_Add2(), S_Add2_64(), S_Add2f(), S_Add_Int16Array(), S_Add_Int32Array(), S_Add_Int64Array(), S_Addna(), S_Addnf(), S_Addnfp(), S_Bool(), S_Cat2(), S_Cat2T(), S_Catna(), S_Catnf(), S_CatnT(), S_Conn2(), S_Conn3(), S_Conn4(), S_Conn5(), S_Conn6(), S_Conn7(), S_Fail1(), S_Multi1(), S_Seq1(), and S_Seq2(). Referenced by main(). |
|
Definition at line 154 of file TestSRPC.C. References die(), ints, minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int(), SRPC::send_end(), and SRPC::send_int(). Referenced by be_client(). |
|
Definition at line 557 of file TestSRPC.C. References die(), int64s, minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int64(), SRPC::send_end(), and SRPC::send_int64(). Referenced by be_client(). |
|
Definition at line 179 of file TestSRPC.C. References die(), floats, minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_float(), SRPC::send_end(), and SRPC::send_float(). Referenced by be_client(). |
|
Definition at line 585 of file TestSRPC.C. References die(), int16s, minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int16(), SRPC::send_end(), and SRPC::send_int16_array(). Referenced by be_client(). |
|
Definition at line 623 of file TestSRPC.C. References die(), int32s, minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int32(), SRPC::send_end(), and SRPC::send_int32_array(). Referenced by be_client(). |
|
Definition at line 661 of file TestSRPC.C. References die(), int64s, minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int64(), SRPC::send_end(), and SRPC::send_int64_array(). Referenced by be_client(). |
|
Definition at line 207 of file TestSRPC.C. References int_seq::append(), die(), ints, minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int(), SRPC::send_end(), and SRPC::send_int_seq(). Referenced by be_client(). |
|
Definition at line 237 of file TestSRPC.C. References die(), ints, minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int(), SRPC::send_end(), and SRPC::send_int_seq(). Referenced by be_client(). |
|
Definition at line 270 of file TestSRPC.C. References die(), floats, minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_float(), SRPC::send_end(), SRPC::send_float(), and SRPC::send_int(). Referenced by be_client(). |
|
Definition at line 699 of file TestSRPC.C. References die(), minor, new_test(), ok(), SRPC::recv_bool(), SRPC::recv_end(), SRPC::send_bool(), and SRPC::send_end(). Referenced by be_client(). |
|
Definition at line 304 of file TestSRPC.C. References die(), minor, NEW_PTRFREE_ARRAY, new_test(), ok(), SRPC::recv_chars_here(), SRPC::recv_end(), SRPC::send_chars(), and SRPC::send_end(). Referenced by be_client(). |
|
Definition at line 409 of file TestSRPC.C. References die(), minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_Text(), SRPC::send_end(), and SRPC::send_Text(). Referenced by be_client(). |
|
Definition at line 339 of file TestSRPC.C. References chars_seq::append(), die(), minor, new_test(), ok(), SRPC::recv_chars(), SRPC::recv_end(), SRPC::send_chars_seq(), and SRPC::send_end(). Referenced by be_client(). |
|
Definition at line 370 of file TestSRPC.C. References die(), minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_Text(), SRPC::send_chars_seq(), and SRPC::send_end(). Referenced by be_client(). |
|
Definition at line 438 of file TestSRPC.C. References chars_seq::append(), die(), minor, new_test(), ok(), SRPC::recv_chars(), SRPC::recv_end(), SRPC::send_chars_seq(), and SRPC::send_end(). Referenced by be_client(). |
|
Definition at line 754 of file TestSRPC.C. References SRPC::caller, minor, new_test(), ok(), print_connection(), SRPC::recv_end(), and SRPC::send_end(). Referenced by be_client(). |
|
Definition at line 783 of file TestSRPC.C. References SRPC::caller, minor, new_test(), ok(), print_connection(), SRPC::recv_end(), SRPC::send_end(), and SRPC::start_call(). Referenced by be_client(). |
|
Definition at line 813 of file TestSRPC.C. References SRPC::alive(), SRPC::caller, die(), ints, minor, new_test(), ok(), print_connection(), SRPC::recv_end(), SRPC::send_end(), SRPC::start_call(), and wait_for_server(). Referenced by be_client(). |
|
Definition at line 847 of file TestSRPC.C. References SRPC::caller, ints, minor, new_test(), ok(), print_connection(), SRPC::recv_end(), SRPC::send_end(), and SRPC::start_call(). Referenced by be_client(). |
|
Definition at line 877 of file TestSRPC.C. References SRPC::caller, die(), ints, new_test(), ok(), print_connection(), SRPC::failure::r, SRPC::recv_end(), SRPC::send_end(), SRPC::start_call(), and SRPC::version_skew. Referenced by be_client(). |
|
Definition at line 915 of file TestSRPC.C. References SRPC::caller, new_test(), ok(), print_connection(), SRPC::recv_int(), SRPC::send_end(), and SRPC::start_call(). Referenced by be_client(). |
|
Definition at line 728 of file TestSRPC.C. References SRPC::alive(), die(), ints, new_test(), ok(), and SRPC::send_failure(). Referenced by be_client(). |
|
Definition at line 953 of file TestSRPC.C. References die(), MultiSRPC::End(), minor, new_test(), nports, ok(), SRPC::recv_end(), SRPC::recv_int(), SRPC::send_end(), SRPC::send_int(), MultiSRPC::Start(), and SRPC::start_call(). Referenced by be_client(). |
|
Definition at line 476 of file TestSRPC.C. References die(), ints, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int(), SRPC::send_end(), SRPC::send_int(), SRPC::send_seq_end(), and SRPC::send_seq_start(). Referenced by be_client(). |
|
Definition at line 510 of file TestSRPC.C. References die(), ints, int_seq::length(), new_test(), ok(), SRPC::recv_end(), SRPC::recv_int(), SRPC::send_chars_seq(), SRPC::send_end(), SRPC::send_int(), SRPC::send_int_seq(), SRPC::send_seq_end(), and SRPC::send_seq_start(). Referenced by be_client(). |
|
Definition at line 81 of file TestSRPC.C. References die(), fatal(), SRPC::failure::msg, and SRPC::failure::r. Referenced by C_Add2(), C_Add2_64(), C_Add2f(), C_Add_Int16Array(), C_Add_Int32Array(), C_Add_Int64Array(), C_Addna(), C_Addnf(), C_Addnfp(), C_Bool(), C_Cat2(), C_Cat2T(), C_Catna(), C_Catnf(), C_CatnT(), C_Conn4(), C_Conn6(), C_Fail1(), C_Multi1(), C_Seq1(), C_Seq2(), die(), S_Conn2(), S_Conn3(), S_Conn4(), S_Conn5(), S_Conn6(), S_Conn7(), and S_Fail1(). |
|
Definition at line 71 of file TestSRPC.C. References minor, SRPC::failure::msg, and SRPC::failure::r. Referenced by be_client(), be_server(), and die(). |
|
Definition at line 1119 of file TestSRPC.C. |
|
Definition at line 129 of file TestSRPC.C. References int16s, int32s, int64s, rand16(), rand32(), and rand64(). Referenced by be_client(). |
|
Definition at line 94 of file TestSRPC.C. |
|
Definition at line 1127 of file TestSRPC.C. References be_client(), be_server(), Text::FindCharR(), init(), Text::Length(), PathnameSep, and Text::Sub(). |
|
Definition at line 51 of file TestSRPC.C. References minor. Referenced by be_client(), be_server(), C_Add2(), C_Add2_64(), C_Add2f(), C_Add_Int16Array(), C_Add_Int32Array(), C_Add_Int64Array(), C_Addna(), C_Addnf(), C_Addnfp(), C_Bool(), C_Cat2(), C_Cat2T(), C_Catna(), C_Catnf(), C_CatnT(), C_Conn2(), C_Conn3(), C_Conn4(), C_Conn5(), C_Conn6(), C_Conn7(), C_Fail1(), C_Multi1(), C_Seq1(), C_Seq2(), S_Add2(), S_Add2_64(), S_Add2f(), S_Add_Int16Array(), S_Add_Int32Array(), S_Add_Int64Array(), S_Addna(), S_Addnf(), S_Addnfp(), S_Bool(), S_Cat2(), S_Cat2T(), S_Catna(), S_Catnf(), S_CatnT(), S_Conn2(), S_Conn3(), S_Conn4(), S_Conn5(), S_Conn6(), S_Conn7(), S_Fail1(), S_Multi1(), S_Seq1(), and S_Seq2(). |
|
|
Definition at line 62 of file TestSRPC.C. References Text::chars(), SRPC::local_socket(), and SRPC::remote_socket(). Referenced by be_client(), C_Conn2(), C_Conn3(), C_Conn4(), C_Conn5(), C_Conn6(), C_Conn7(), S_Conn2(), S_Conn3(), S_Conn4(), S_Conn5(), S_Conn6(), and S_Conn7(). |
|
Definition at line 99 of file TestSRPC.C. Referenced by init_arrays(). |
|
Definition at line 108 of file TestSRPC.C. Referenced by init_arrays(). |
|
Definition at line 118 of file TestSRPC.C. Referenced by init_arrays(). |
|
Definition at line 167 of file TestSRPC.C. References minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int(), SRPC::send_end(), and SRPC::send_int(). Referenced by be_server(). |
|
Definition at line 570 of file TestSRPC.C. References minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int64(), SRPC::send_end(), and SRPC::send_int64(). Referenced by be_server(). |
|
Definition at line 192 of file TestSRPC.C. References minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_float(), SRPC::send_end(), and SRPC::send_float(). Referenced by be_server(). |
|
Definition at line 603 of file TestSRPC.C. References minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int16_array(), SRPC::send_end(), and SRPC::send_int16(). Referenced by be_server(). |
|
Definition at line 641 of file TestSRPC.C. References minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int32_array(), SRPC::send_end(), and SRPC::send_int32(). Referenced by be_server(). |
|
Definition at line 679 of file TestSRPC.C. References minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int64_array(), SRPC::send_end(), and SRPC::send_int64(). Referenced by be_server(). |
|
Definition at line 224 of file TestSRPC.C. References int_seq::length(), minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int_seq(), SRPC::send_end(), and SRPC::send_int(). Referenced by be_server(). |
|
Definition at line 252 of file TestSRPC.C. References ints, int_seq::length(), int_seq::min_size(), minor, NEW_PTRFREE_ARRAY, new_test(), ok(), SRPC::recv_end(), SRPC::recv_int_seq(), SRPC::send_end(), and SRPC::send_int(). Referenced by be_server(). |
|
Definition at line 289 of file TestSRPC.C. References minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_float(), SRPC::recv_int(), SRPC::send_end(), and SRPC::send_float(). Referenced by be_server(). |
|
Definition at line 713 of file TestSRPC.C. References minor, new_test(), ok(), SRPC::recv_bool(), SRPC::recv_end(), SRPC::send_bool(), and SRPC::send_end(). Referenced by be_server(). |
|
Definition at line 320 of file TestSRPC.C. References Text::cchars(), minor, new_test(), ok(), SRPC::recv_chars(), SRPC::recv_end(), SRPC::send_chars(), and SRPC::send_end(). Referenced by be_server(). |
|
Definition at line 424 of file TestSRPC.C. References minor, new_test(), ok(), SRPC::recv_end(), SRPC::recv_Text(), SRPC::send_end(), and SRPC::send_Text(). Referenced by be_server(). |
|
Definition at line 357 of file TestSRPC.C. References Text::cchars(), chars_seq::length(), minor, new_test(), ok(), SRPC::recv_chars_seq(), SRPC::recv_end(), SRPC::send_chars(), and SRPC::send_end(). Referenced by be_server(). |
|
Definition at line 385 of file TestSRPC.C. References chars_seq::length(), chars_seq::min_size(), minor, NEW_PTRFREE_ARRAY, new_test(), ok(), SRPC::recv_chars_seq(), SRPC::recv_end(), SRPC::send_end(), and SRPC::send_Text(). Referenced by be_server(). |
|
Definition at line 460 of file TestSRPC.C. References Text::cchars(), chars_seq::length(), minor, new_test(), ok(), SRPC::recv_chars_seq(), SRPC::recv_end(), SRPC::send_chars(), and SRPC::send_end(). Referenced by be_server(). |
|
Definition at line 765 of file TestSRPC.C. References SRPC::await_call(), SRPC::callee, SRPC::default_intf_version, SRPC::default_proc_id, die(), minor, new_test(), ok(), and print_connection(). Referenced by be_server(). |
|
Definition at line 795 of file TestSRPC.C. References SRPC::await_call(), SRPC::callee, SRPC::default_intf_version, SRPC::default_proc_id, die(), minor, new_test(), ok(), and print_connection(). Referenced by be_server(). |
|
Definition at line 828 of file TestSRPC.C. References SRPC::await_call(), SRPC::callee, SRPC::default_intf_version, SRPC::default_proc_id, die(), ints, minor, new_test(), ok(), and print_connection(). Referenced by be_server(). |
|
Definition at line 859 of file TestSRPC.C. References SRPC::await_call(), SRPC::callee, die(), ints, minor, new_test(), ok(), and print_connection(). Referenced by be_server(). |
|
Definition at line 894 of file TestSRPC.C. References SRPC::await_call(), SRPC::callee, die(), ints, new_test(), ok(), print_connection(), SRPC::failure::r, and SRPC::version_skew. Referenced by be_server(). |
|
Definition at line 928 of file TestSRPC.C. References SRPC::await_call(), SRPC::callee, SRPC::default_intf_version, SRPC::default_proc_id, die(), ints, new_test(), ok(), SRPC::partner_went_away, print_connection(), and SRPC::failure::r. Referenced by be_server(). |
|
Definition at line 739 of file TestSRPC.C. References die(), ints, SRPC::failure::msg, new_test(), ok(), SRPC::failure::r, and SRPC::recv_int(). Referenced by be_server(). |
|
Definition at line 983 of file TestSRPC.C. References SRPC::await_call(), SRPC::callee, SRPC::default_intf_version, SRPC::default_proc_id, minor, NEW_CONSTR, new_test(), nports, ok(), SRPC::recv_end(), SRPC::recv_int(), SRPC::send_end(), and SRPC::send_int(). Referenced by be_server(). |
|
Definition at line 490 of file TestSRPC.C. References new_test(), ok(), SRPC::recv_end(), SRPC::recv_int(), SRPC::recv_seq_end(), SRPC::recv_seq_start(), SRPC::send_end(), and SRPC::send_int(). Referenced by be_server(). |
|
Definition at line 535 of file TestSRPC.C. References int_seq::length(), new_test(), ok(), SRPC::recv_chars_seq(), SRPC::recv_end(), SRPC::recv_int(), SRPC::recv_int_seq(), SRPC::recv_seq_end(), SRPC::recv_seq_start(), SRPC::send_end(), and SRPC::send_int(). Referenced by be_server(). |
|
Definition at line 89 of file TestSRPC.C. References Basics::thread::pause(). Referenced by be_client(), and C_Conn4(). |
|
Definition at line 32 of file TestSRPC.C. |
|
Definition at line 27 of file TestSRPC.C. |
|
Definition at line 35 of file TestSRPC.C. Referenced by C_Add2f(), and C_Addnfp(). |
|
Definition at line 45 of file TestSRPC.C. Referenced by C_Add_Int16Array(), and init_arrays(). |
|
Definition at line 47 of file TestSRPC.C. Referenced by C_Add_Int32Array(), and init_arrays(). |
|
Definition at line 49 of file TestSRPC.C. Referenced by C_Add2_64(), C_Add_Int64Array(), and init_arrays(). |
|
Definition at line 29 of file TestSRPC.C. |
|
Definition at line 31 of file TestSRPC.C. Referenced by C_Add2(), C_Addna(), C_Addnf(), C_Conn4(), C_Conn5(), C_Conn6(), C_Fail1(), C_Seq1(), C_Seq2(), S_Addnf(), S_Conn4(), S_Conn5(), S_Conn6(), S_Conn7(), and S_Fail1(). |
|
Definition at line 43 of file TestSRPC.C. Referenced by C_Add2(), C_Add2_64(), C_Add2f(), C_Add_Int16Array(), C_Add_Int32Array(), C_Add_Int64Array(), C_Addna(), C_Addnf(), C_Addnfp(), C_Bool(), C_Cat2(), C_Cat2T(), C_Catna(), C_Catnf(), C_CatnT(), C_Conn2(), C_Conn3(), C_Conn4(), C_Conn5(), C_Multi1(), fatal(), new_test(), S_Add2(), S_Add2_64(), S_Add2f(), S_Add_Int16Array(), S_Add_Int32Array(), S_Add_Int64Array(), S_Addna(), S_Addnf(), S_Addnfp(), S_Bool(), S_Cat2(), S_Cat2T(), S_Catna(), S_Catnf(), S_CatnT(), S_Conn2(), S_Conn3(), S_Conn4(), S_Conn5(), and S_Multi1(). |
|
Definition at line 39 of file TestSRPC.C. Referenced by C_Multi1(), init(), and S_Multi1(). |
|
Definition at line 37 of file TestSRPC.C. Referenced by init(). |
|
Definition at line 41 of file TestSRPC.C. |
|
Definition at line 28 of file TestSRPC.C. |