Stream Protocols

The Stream Protocol Control Block (SPCB) defines key parameters that control the behavior of a data stream. The application can query, install, or deinstall a specific SPCB from a stream handler. SPCB information is installed in the SPI.INI file by means of a resource file. (See Installing a Stream Handler for a description of how to install stream protocol.)

Each stream handler supports one or more stream protocols. Each SPCB is uniquely identified by the value of the stream data type (SPCB key). One field in the SPCB key allows the stream handler to have multiple SPCBs installed for the same data type. This field can be used by an application to specify which SPCB, for any data type, it wants to use. Each application in the system could define multiple SPCBs for the same data type (see the ulType field in the SPCBKEY data structure). The application can modify a stream protocol by installing a new SPCB and deinstalling the old SPCB.

The parameters in the SPCB are: