Interaction within the client

A client consists of the callers that issue requests to a server and the code that controls the callers. A client that contains a single caller includes:

You define the caller using RPC Services and either use an existing transport class or define your own. You use the Service Access framework to obtain a service reference that corresponds to an existing service definition, and Message Streams to create a stream (derived from TRequestSenderStream). Your client determines when to issue requests using the caller as appropriate to your implementation.

At minimum, a client:

  1. Creates a TLocalServiceReference.
  2. Instantiates a TRequestSenderStream, passing it the TLocalServiceReference. The TRequestSenderStream instance adopts the service reference.
  3. Instantiates a TMessageStreamsTransport, passing the TRequestSenderStream instance. The TMessageStreamsTransport instance adopts the TRequestSenderStream.
  4. Instantiates the caller passing the TMessageStreamsTransport. The caller does not adopt the transport; the client retains ownership of this instance.


[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