Function silc_packet_send
SYNOPSIS
SilcBool silc_packet_send(SilcPacketStream stream,
SilcPacketType type, SilcPacketFlags flags,
const unsigned char *data,
SilcUInt32 data_len);
DESCRIPTION
Send `data' of length of `data_len' to the packet stream indicated by
`stream'. If ciphers and HMACs were set using silc_packet_set_keys
the packet will be encrypted and MAC will be computed for it. If
silc_packet_set_ids was used to set source and destination ID for the
packet stream those IDs are used in the packet. If IDs have not been
set and they need to be provided then silc_packet_send_ext function
should be used. Otherwise, the packet will not have IDs set at all.
Returns FALSE if packet could not be sent.
|