|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
A message under construction. More...
#include <zephyr/net/stun.h>
A message under construction.
Set up with stun_builder_init(). The header in the buffer is valid after every attribute added, so the message can be sent as soon as stun_builder_len() or one of the stun_finish functions has returned its length.
The functions that add to it return 0 or a negative errno. Running out of room (-EMSGSIZE), a failure of the cryptographic backend (-EIO) and an argument stun_builder_init() refused are remembered: every later call returns the same error. The return values listed for each function do not repeat an error remembered from stun_builder_init(). A refused argument of any other call (-EINVAL, -EAFNOSUPPORT) or a call out of order (-EPERM) leaves the message as it was and may be followed by further calls.