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.
QUANTAnet_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 the server
and send text to it. The netlogd.cxx and perfclient.cxx programs implement
a simple performance monitoring daemon and client program. It uses QUANTAnet_perfDaemon_c
and QUANTAnet_perfDaemonClient_c
classes.
for more information: Post your questions online on the Quanta forum page.