Function silc_protocol_register
SYNOPSIS
void silc_protocol_register(SilcProtocolType type,
SilcProtocolCallback callback);
DESCRIPTION
Dynamically registers new protocol. The protocol is added into protocol
list and can be unregistered with silc_protocol_unregister. The
`type' is the type of the protocol and is used to identify the
protocol when allocating it with silc_protocol_alloc. The `callback'
is the actual protocol function that is called when protocol is
executed (and it performes the actual protocol). The protocol
is unregistered by silc_protocol_unregister function.
|