table of contents
other versions
- testing 1.1.0-1
- stretch-backports 1.0.1~39-g6abacc1-1~bpo9+1
- unstable 1.1.0-1
WSLAY_EVENT_CONFIG_SET_ALLOWED_RSV_BITS(3) | wslay | WSLAY_EVENT_CONFIG_SET_ALLOWED_RSV_BITS(3) |
NAME¶
wslay_event_config_set_allowed_rsv_bits - Set allowed reserved bitsSYNOPSIS¶
#include <wslay/wslay.h>- void wslay_event_config_set_allowed_rsv_bits(wslay_event_context_ptr ctx, uint8_t rsv)
DESCRIPTION¶
wslay_event_config_set_allowed_rsv_bits() sets a bit mask of allowed reserved bits (RSVs). Currently only permitted values are WSLAY_RSV1_BIT to allow PMCE extension (see RFC 7692) or WSLAY_RSV_NONE to disable.When bits other than WSLAY_RSV1_BIT is set in rsv, those bits are simply ignored.
The set value is used to check the validity of reserved bits for both transmission and reception of WebSocket frames.
RETURN VALUE¶
This function always succeeds, and there is no return value.SEE ALSO¶
wslay_event_queue_fragmented_msg(), wslay_event_queue_fragmented_msg_ex()AUTHOR¶
Tatsuhiro TsujikawaCOPYRIGHT¶
2017, 2015, Tatsuhiro TsujikawaSeptember 28, 2017 | @PACKAGE_VERSION@ |