Skip to main content

check_parameter_scope

Function check_parameter_scope 

Source
fn check_parameter_scope(message: &ControlMessage) -> Result<(), CodecError>
Expand description

Refuse a message carrying a Message Parameter its own definition does not place there (Section 9.19.1).

Applied on both sides. A parameter outside its scope is one the peer must close the session over, so writing one is a way to end a session rather than a way to ask for anything.