Initializing the client

Before you can establish a communications channel, you need a service reference. See "Creating a service reference" on page 34 for instructions.

To initialize the client:

If you want multiple client instances, clone the TRequestSenderStream object or construct them in the same way you construct the first one. Remember to run each TRequestSenderStream clone in a separate thread.

This example uses a named service--visible to any client running on the same host as the server:

      TLocalServiceReference myServiceReference (TLocalObjectName ("MyServer") ) ;
      TRequestSenderStream mySender ( myServiceReference ) ;

[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