API Reference
StreamSec.Snip.BaseOctetConnection
Secure Network Interface Framework - StreamSec.Snip.BaseOctetConnection
Feature notes: Snif remoting framework (concepts)
Classes, interfaces and records
classTsnipBaseOctetConnection
inherits from TsnipAbstractConnection
constructor Create;
destructor Destroy; override;
function Close: Boolean; override;
function SendRequest(const aRequest: TsnifRequest): Boolean; override;
Delegates to SendMessage, forwarding aRequest, and returns its result.
function SendResponse(const aResponse: TsnifResponse): Boolean; override;
Delegates to SendMessage, forwarding aResponse, and returns its result.
property Allow: TsnipAllow read fAllow write fAllow;
property MaxFrameSize: Integer read fMaxFrameSize write SetMaxFrameSize;
The largest inbound frame body accepted before a byte of it is read; a header declaring more (or a length that would not fit an Integer) is refused and the connection dropped, so a peer cannot desync the framing or make this end buffer without bound. Defaults to cSnipDefaultMaxFrameSize; raise it for an application whose legitimate messages are larger.
property PadRequestsTo: Integer read fPadRequestsTo write fPadRequestsTo;
FRAME PADDING. A snip frame is as long as what it carries, so anything counting octets between two endpoints - a proxy, a load balancer, a network observer - reads the size of a request it cannot decrypt, and from that the verb, the length of an argument, and often whether the answer was a hit or...
Full description »
property PadResponsesTo: Integer read fPadResponsesTo write fPadResponsesTo;
property RequirePadding: Boolean read fRequirePadding write fRequirePadding;
Refuses an inbound request or response that is not a multiple of the size configured for its kind. Off by default so padding can be rolled out before it is insisted on; turn it on once both ends pad, or a peer that quietly stops padding takes the property away with nobody noticing.
property OnConnect: TNotifyEvent read fOnConnect write fOnConnect;
property OnAccept: TNotifyEvent read fOnAccept write fOnAccept;
property OnClose: TNotifyEvent read fOnClose write fOnClose;
Types (enumerations, sets, aliases)
setTsnipAllow
TsnipAllow = set of 0..4;
Routines