Buffer Stream Interface

DESCRIPTION

Buffer stream interface to send and receive buffers. The benefit of this interface is that the receiver need not parse buffers from the received data but each buffer sent is delivered separately to the receiver callback, even if multiple buffers were received at the same time. The length of the buffer is delivered with the data. The buffer data follows a 32-bit length field in the stream.

This interface is named SILC Buffer Stream API instead of simply SILC Packet API which would be more desriptive name but that API name is already used by another SILC distribution.

Buffer stream is not thread-safe. If the same buffer stream must be used in multithreaded environment concurrency control must be employed.

TABLE OF CONTENTS