Defining a request-reply server

Request-reply servers use TRequestReceiverStream objects to stream in incoming requests and to stream out replies.

A request-reply server requires a relationship of one thread per request receiver stream. While you can define a server to have more than one request receiver stream, allowing the server to handle more than one incoming request at a time, you must also create another thread for each request receiver stream, enabling the server to process requests concurrently.

Whether you create multiple TRequestReceiverStreams or use only one, there might be times when a request arrives and no threads are available to process the request. When this happens, the incoming requests queue up until a server thread can receive them.

When you define a request-reply server, you need to provide code to:

The next section describes each step in detail.


[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