next up previous contents
Next: CtoSconnection, CtoCconnection and MessageQueue Up: The Client Previous: The Client   Contents

GossipClient

The client works in a similar manner to the server: the connection to the server runs concurrently in one thread, while another thread listens for incoming connections from other clients. The interface runs in a third thread. Since user messages are going to be relatively short and the connection is shutdown as soon as the message is received, there is no need to incur the overhead of spawning a new thread to deal with each incoming message, it is simply handled by the listening thread.



Nathan Dimmock 2001-06-20