onSuccess
onSuccess — a virtual method invoked on receipt of a success message.
virtual void onSuccess( | cmd, | |
parms); |
LPCTSTR cmd;LPCTSTR parms;virtual void onSuccess( | cmd, | |
parms); |
String cmd;String parms;cmdThe original command sent to the DataHub instance to which this reply corresponds.
parmsThe list of parameters sent as part of the command, as a single
space-separated string, or NULL[10] if none are returned. If the command involved multiple
parameters, the list may be truncated.
This virtual method is invoked on receipt of a success message. When a client sends a command to the DataHub instance, it will respond with one of:
information appropriate to the command
a success message
a failure message
If a command succeeds, the DataHub instance 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 instance 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 instance. 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. |