Defining a class to send messages

As with receive message classes, how you define your send message class depends on your communications protocol. The one thing to keep in mind is that you need a way for the client to indicate that has finished streaming data into the message object so that the message can be sent. The standard implementation sends the message when the object is destroyed--the destructor handles this automatically. You can define your send message class to send messages similarly or a Done member function that clients call explicitly.


[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