Issuing requests

To issue a request, you:

  1. Stream the request into TRequestSenderStream.
  2. Call TRequestSenderStream::Send to send the request to the server.
  3. Stream the reply from TRequestSenderStream.
  4. Call TRequestSenderStream::DoneWithReply to indicate you have finished streaming the reply.

NOTE By default, the request-reply interface throws an exception if your code does not stream out the full reply from TRequestSenderStream. If you do not want to stream out the full reply, replace the call to TRequestSenderStream:: DoneWithReply with a call to TRequestSenderStream::FlushReply. FlushReply ignores all data left in the stream.

      theRequest >>= mySender ;
      mySender.Send () ;
      theReply <<= mySender ;
      mySender.DoneWithReply () ;

[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