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:
- A caller object
- A service reference that points to the dispatcher's service definition
- A stream object to use for outgoing requests and incoming replies
- A transport object
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:
- Creates a TLocalServiceReference.
- Instantiates a TRequestSenderStream, passing it the TLocalServiceReference. The TRequestSenderStream instance adopts the service reference.
- Instantiates a TMessageStreamsTransport, passing the TRequestSenderStream instance. The TMessageStreamsTransport instance adopts the TRequestSenderStream.
- 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