Merge pull request #2218 from jwillemsen/jwi-pthreadsigmask
[ACE_TAO.git] / TAO / tests / Monitor / Marshal_Buffer / README
blob897a17a190456e36fde09214f84aee6dad741257
3 This directory contains a simple example of the marshaling
4 buffer size monitor. A marshaling buffer is identical, in
5 CORBA, with the total size of an output CDR stream, one of
6 which is associated with each connection.
8 In this example, there are 3 processes - a regular server
9 and client that send and reply a string as described in
10 the IDL interface, and a monitoring client, which gets
11 the object reference of the regular client's Monitor::MC
12 interface, and queries it repeatedly for the value stored
13 in the monitor point associated with the connection's
14 output CDR stream.
16 Note that the regular 'client' in this example also
17 plays the role of a server, since it must make its
18 Monitor::MC object reference available and listen for
19 calls on it.
21 To run the example, execute the 'run_test.pl' Perl script.
22 The server process outputs the length of the strings it
23 receives, the client process outputs the length of the
24 string replies it gets, and the monitor client outputs
25 the size of the marshaling buffer each time it queries.
27 There are 3 strings passed (and returned) in the execution
28 of the example, of length 1k (1024), 2k (2048) and 3k (3072)
29 bytes. Notice that, due to alignment and CDR encoding rules,
30 the buffer sizes are always slightly larger than the raw
31 string length.