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

STUN client over UDP sockets. More...

#include <stdint.h>
#include <zephyr/net/net_ip.h>

Go to the source code of this file.

Macros

#define STUN_CLIENT_DEFAULT_PORT   3478U
 Port STUN servers listen on by default (RFC 8489, section-18.6).

Functions

int stun_client_query (int sock, const struct net_sockaddr *server, net_socklen_t server_len, uint32_t timeout_ms, struct net_sockaddr_storage *mapped)
 Ask a STUN server for the address it sees a socket at.
int stun_client_simple (const char *host, uint16_t port, uint32_t timeout_ms, struct net_sockaddr_storage *mapped)
 Ask a STUN server, given by name, for the address it sees this device at.

Detailed Description

STUN client over UDP sockets.