CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
NetStreamFilter Struct Reference

Base for byte-stream filters (attached between the application and a stream socket) More...

#include <filter.h>

Data Fields

BufRing encOut
 This stage's output toward the wire (a chain boundary buffer)
 
BufRing decOut
 This stage's output toward the app (a chain boundary buffer)
 

Detailed Description

Base for byte-stream filters (attached between the application and a stream socket)

A stream filter transforms a byte stream in each direction. It owns two boundary ring buffers: encOut collects this stage's output toward the wire, decOut its output toward the application. The driver feeds each stage from the previous stage's boundary ring – at the ends of the chain, from the flow's staging ring going out and the socket's receive ring coming in – so a stage holding a partial framing/record unit simply produces nothing that pass, without losing the buffered remainder.

Definition at line 305 of file filter.h.


The documentation for this struct was generated from the following file: