Function silc_command_reply_payload_encode_va
SYNOPSIS
SilcBuffer
silc_command_reply_payload_encode_va(SilcCommand cmd,
SilcStatus status,
SilcStatus error,
SilcUInt16 ident,
SilcUInt32 argc, ...);
DESCRIPTION
Same as silc_command_payload_encode_va except that this is used to
encode strictly command reply packets. The `argc' must not count
`status' and `error' as arguments. The `status' includes the
command reply status. If single reply will be sent then it includes
SILC_STATUS_OK if error did not occur. It includes an error value
if error did occur. In this case `error' field is ignored. If
there will be multiple successful command replies then the `status'
includes a list value and `error' is ignored. If there will
multiple error replies the `status' includes a list value, and
the `error' includes an error value. Thus, the `error' value is
specified only if there will be list of errors.
NOTES
Protocol defines that it is possible to send both list of successful
and list of error replies at the same time, as long as the error
replies are sent after the successful replies.
|