Function silc_client_send_private_message
SYNOPSIS
bool silc_client_send_private_message(SilcClient client,
SilcClientConnection conn,
SilcClientEntry client_entry,
SilcMessageFlags flags,
unsigned char *data,
SilcUInt32 data_len,
bool force_send);
DESCRIPTION
Sends private message to remote client. If private message key has
not been set with this client then the message will be encrypted using
normal session keys. Private messages are special packets in SILC
network hence we need this own function for them. This is similar
to silc_client_packet_send_to_channel except that we send private
message. The `data' is the private message. If the `force_send' is
TRUE the packet is sent immediately.
If the `flags' includes SILC_MESSAGE_FLAG_SIGNED the message will be
digitally signed with the SILC key pair.
Returns TRUE if the message was sent, and FALSE if error occurred.
|