Function silc_packet_receive_process
SYNOPSIS
bool silc_packet_receive_process(SilcSocketConnection sock,
bool local_is_router,
SilcCipher cipher, SilcHmac hmac,
SilcUInt32 sequence,
SilcPacketParserCallback parser,
void *parser_context);
DESCRIPTION
Processes and decrypts the incoming data, and calls parser callback
for each received packet that will handle the actual packet parsing.
If more than one packet was received this calls the parser multiple
times. The parser callback will get context SilcPacketParserContext
that includes the packet and the `parser_context' sent to this
function.
The `local_is_router' indicates whether the caller is router server
in which case the receiving process of a certain packet types may
be special. Normal server and client must set it to FALSE. The
SilcPacketParserContext will indicate also whether the received
packet was normal or special packet.
|