|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
UPnP/NAT-PMP port mapping implementation. More...
Go to the source code of this file.
Functions | |
| asciichat_error_t | nat_upnp_open (uint16_t internal_port, const char *description, nat_upnp_context_t **ctx) |
| void | nat_upnp_close (nat_upnp_context_t **ctx) |
| bool | nat_upnp_is_active (const nat_upnp_context_t *ctx) |
| asciichat_error_t | nat_upnp_refresh (nat_upnp_context_t *ctx) |
| asciichat_error_t | nat_upnp_get_address (const nat_upnp_context_t *ctx, char *addr, size_t addr_len) |
UPnP/NAT-PMP port mapping implementation.
Strategy for enabling direct TCP without WebRTC:
This pragmatic approach provides direct connectivity for most home users while maintaining compatibility with stricter NATs via WebRTC fallback.
Definition in file upnp.c.
| void nat_upnp_close | ( | nat_upnp_context_t ** | ctx | ) |
Definition at line 276 of file upnp.c.
Referenced by acds_main().
| asciichat_error_t nat_upnp_get_address | ( | const nat_upnp_context_t * | ctx, |
| char * | addr, | ||
| size_t | addr_len | ||
| ) |
Definition at line 310 of file upnp.c.
References safe_snprintf().
Referenced by acds_main(), nat_detect_quality(), and server_main().
| bool nat_upnp_is_active | ( | const nat_upnp_context_t * | ctx | ) |
Definition at line 291 of file upnp.c.
Referenced by nat_detect_quality().
| asciichat_error_t nat_upnp_open | ( | uint16_t | internal_port, |
| const char * | description, | ||
| nat_upnp_context_t ** | ctx | ||
| ) |
Definition at line 236 of file upnp.c.
Referenced by acds_main(), nat_detect_quality(), and server_main().
| asciichat_error_t nat_upnp_refresh | ( | nat_upnp_context_t * | ctx | ) |
Definition at line 298 of file upnp.c.