Stream Interface


SILC Stream API is a generic representation of a stream. A common API is defined that can be used to read from and write to the stream. Any other stream API derived from this API can use this same interface for reading and writing.

The SilcStream is an abstraction. It can represent any stream; socket stream, file descriptor stream, packet stream, etc. See examples in silcsocketstream.h and silcfdstream.h.

Note that stream implementations usually are not thread-safe. Always verify whether a stream implementation is thread-safe by checking their corresponding documentation.