Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

A Binding transaction. More...

#include <zephyr/net/stun.h>

Data Fields

enum stun_binding_state state
 State.
enum stun_binding_fail fail
 Why it failed, in STUN_BINDING_FAILED.
uint16_t error_code
 Error code of the server's error response, 0 if it carried none.
struct net_sockaddr_storage mapped
 The address the server sees, in STUN_BINDING_DONE.

Detailed Description

A Binding transaction.

Zero it before the first stun_binding_start(). The members are for reading.

The library keeps nothing of a transaction outside this structure. Zeroing it abandons a transaction that is in flight and makes the structure ready for stun_binding_start() again.

Field Documentation

◆ error_code

uint16_t stun_binding::error_code

Error code of the server's error response, 0 if it carried none.

◆ fail

enum stun_binding_fail stun_binding::fail

Why it failed, in STUN_BINDING_FAILED.

◆ mapped

struct net_sockaddr_storage stun_binding::mapped

The address the server sees, in STUN_BINDING_DONE.

◆ state

enum stun_binding_state stun_binding::state

State.


The documentation for this struct was generated from the following file: