Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodiAppProtocolPriority.AddProtocolByPriority

procedure AddProtocolByPriority(const aProtocol: iAppProtocol; aPriority: Integer);
Insert aProtocol so the list stays in DESCENDING priority order. HIGHER IS PREFERRED: ALPN selection walks the SERVER's list outermost and takes the first token the client also offered (TCustomTLS_ContentLayer. PickProtocol), so a protocol's position in this list IS its preference, and the client's own ordering is ignored beyond membership (RFC 7301 sec.3.2). STABLE AMONG EQUALS - two protocols of the same priority keep the order they were added in. That is what makes the all-default case identical to a plain append, so nothing changes until somebody sets a priority.