13#ifndef ZEPHYR_INCLUDE_NET_STUN_CLIENT_H_
14#define ZEPHYR_INCLUDE_NET_STUN_CLIENT_H_
43#define STUN_CLIENT_DEFAULT_PORT 3478U
79 uint32_t timeout_ms,
struct net_sockaddr_storage *mapped);
111 struct net_sockaddr_storage *mapped);
uint32_t net_socklen_t
Length of a socket address.
Definition net_ip.h:172
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.
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.
IPv6 and IPv4 definitions.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Generic sockaddr struct.
Definition net_ip.h:462