Structure SilcPacketParserContext
NAME
typedef struct { ... } SilcPacketParserContext;
DESCRIPTION
This context is used in packet reception when the function
silc_packet_receive_process calls parser callback that performs
the actual packet decryption and parsing. This context is sent as
argument to the parser function. This context must be free'd by
the parser callback function.
Following description of the fields:
SilcPacketContext *packet
The actual packet received from the network. In this phase the
context is not parsed, only the packet->buffer is allocated and
it includes the raw packet data, which is encrypted.
bool normal
Indicates whether the received packet is normal or special packet.
If special the parsing process is special also.
SilcSocketConnection sock
The associated connection.
void *context
User context that is sent to the silc_packet_receive_process
function. This usually includes application and connection specific
data.
|