virtual void onSuccess(LPCTSTR cmd, LPCTSTR parms );
virtual void onSuccess(String cmd, String parms );
This virtual method is invoked on receipt of a success message. When a client sends a command to the DataHub, the DataHub will respond with one of:
If a command succeeds, the DataHub will either respond with information appropriate to the command, or it will send a success message if no information should be returned. If a command fails, the DataHub will always respond with a failure message.
A client has the choice of whether to receive the success messages. Commonly you don't want to expend the bandwidth by receiving success messages for every message you send to the DataHub. A client can turn on and off the success messages by emitting the DataHub command (acksuccess 0|1). This command does not have an associated API function wrapper, so you have to emit it using the sendLispMessage command, like this:
connection.sendLispMessage (true, "(acksuccess 1)");
![]() | The exact syntax of the call depends on whether you are using C++, .Net or Java. |
Copyright © 1995-2012 by Cogent Real-Time Systems, Inc. All rights reserved.