Writing a class to start the dispatcher thread

You can write your own class to handle your dispatcher thread if TDispatcherThread does not meet your needs or if you decide to implement a streaming method other than Message Streams. A class that handles the dispatcher thread must:

The process loop that handles incoming requests must do the following each time a request comes in:

  1. Receive the stream from the caller.
  2. Call the DispatchRequest member function of the dispatcher, passing in two streams (one to use as the receiver stream and one as the reply stream). Both streams can be identical, meaning that DispatchRequest re-uses the receiver stream as the reply stream once it finishes streaming out the request.
  3. Send the reply to the caller.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker