An object of this class can be set up as the server. Use init() to initialize it. The methods checkForNewClients() and process() when called continuously will look out for incoming clients and process them. The showStats() method can provide the performance monitoring data. Use setForcedDestination() to reflect to a single address and port, otherwise sendToAll() will send data to all clients attached to the reflector.
CAVERNnet_tcpReflectorClient_c
It is recommended that clients created using this class be used to connect to the reflector. Use the method connectToServer(). After this you can perform read() or write() operations with teh blocking or non blocking mode. Use showStatus() to find out the status of the connection.
The tcpreflector.cxx program sets up the reflector. Set up multiple clients
using tcpreflectorclient.cxx . The clients connect to teh server
and send text to it. The netlogd.cxx and perfclient.cxx programs implement
a simple performance monitoring daemon and client program. It uses CAVERNnet_perfDaemon_c
and CAVERNnet_perfDaemonClient_c
classes.
for more information email : cavern@evl.uic.edu