silc_fd_stream_file2

SYNOPSIS

    SilcStream silc_fd_stream_file2(const char *read_file,
                                    const char *write_file,
                                    SilcStack stack);

DESCRIPTION

Same as silc_fd_stream_file but creates the stream by opening `read_file' for reading and `write_file' for writing. Returns NULL if system is out of memory.

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

If `stack' is non-NULL all memory is allocated from the `stack' and will be released back to `stack' after the stream is destroyed.