3 This directory contains groups of client and server test programs that
4 exercise the various C++ wrappers for sockets. In general, the test
5 programs do more or less the same thing -- the client establishes a
6 connection with the server and then transfers data to the server,
7 which keeps printing the data until EOF is reached (e.g., user types
10 Unless noted differently, the server is implemented as an "iterative
11 server," i.e., it only deals with one client at a time. The following
12 describes each set of tests in more detail:
14 . C-{inclient,inserver}.cpp -- This is basically a C code
15 implementation that opens a connection to the server and
16 sends all the data from the stdin using Internet domain
19 . CPP-{inclient,inserver}.cpp -- This test is
20 a more sophisticated C++ wrapper version of the preceeding
21 "C" test using Internet domain sockets (i.e., TCP).
22 It allows you to test oneway and twoway socket communication
23 latency and throughput between two processes on the same
24 machine or on different machines.
26 . CPP-inserver-fancy.cpp -- This program is a more glitzy
27 version of CPP-inserver.cpp that illustrates additional
28 features of ACE, such as ACE_Svc_Handler.
30 . CPP-inserver-poll.cpp -- This test illustrates how to
31 write single-threaded concurrent servers using UNIX SVR4
32 poll(). You can run this test using the CPP-inclient.cpp
33 program as the oneway client.
35 . CPP-{unclient,unserver}.cpp -- This test is basically
36 a C++ wrapper version of the preceeding "C++" test using
37 UNIX domain sockets. Note that this test only works
38 between a client and server process on the same machine.
40 . FD-{unclient,inclient}.cpp -- This test illustrates
41 how to pass file descriptors between a client and a
42 concurrent server process on the same machine using the ACE
43 C++ wrappers for UNIX domain sockets.
45 For examples of the ACE SOCK_{Dgram,CODgram} and
46 SOCK_Dgram_{Mcast,Bcast} wrappers, please take a look in the
47 ./examples/Reactor/{Dgram,Multicast,Ntalker} directories.