SilcSocketStreamCallback

SYNOPSIS

    typedef void (*SilcSocketStreamCallback)(SilcResult status,
                                             SilcStream stream,
                                             void *context);

DESCRIPTION

Callback function of this type is called after the socket stream creation is completed. If the `stream' is NULL the socket stream could not be created or the socket connection is not otherwise allowed. The `status' will indicate the error status. In case error ocurrs the associated socket has already been destroyed. The `stream' is socket stream representing the socket connection and silc_socket_stream_* functions can be used to access the stream. All other silc_stream_* functions can also be used to read data, send data, and otherwise handle the stream.

If the silc_stream_set_notifier is called the stream will be set to non-blocking mode.