SilcBufferReceiveCallback

SYNOPSIS

    typedef void (*SilcBufferReceiveCallback)(SilcResult status,
                                              SilcStream stream,
                                              SilcBuffer buffer,
                                              void *context);

DESCRIPTION

Callback function to deliver the received `buffer' from the `stream'. The `buffer' is the buffer that was sent to the stream. If more than one buffers were sent each is delivered separately to this callback. The `status' will indicate an error if such occurred in the stream. The `buffer' is NULL in case of error. The receiver must free the `buffer'.