ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
nat_upnp_context Struct Reference

Handle to UPnP context. More...

#include <lib/network/nat/upnp.h>

Data Fields

char external_ip [16]
 Detected external/public IP (e.g., "203.0.113.42")
 
uint16_t mapped_port
 External port that was mapped (may differ from internal)
 
uint16_t internal_port
 Internal port we're binding to.
 
char device_description [256]
 Device name for logging (e.g., "TP-Link Archer C7")
 
bool is_natpmp
 true if NAT-PMP was used, false if UPnP
 
bool is_mapped
 true if port mapping is currently active
 

Detailed Description

Handle to UPnP context.

Definition at line 25 of file upnp.h.

Field Documentation

◆ device_description

char nat_upnp_context::device_description[256]

Device name for logging (e.g., "TP-Link Archer C7")

Definition at line 29 of file upnp.h.

◆ external_ip

char nat_upnp_context::external_ip[16]

Detected external/public IP (e.g., "203.0.113.42")

Definition at line 26 of file upnp.h.

Referenced by nat_upnp_get_address(), and nat_upnp_is_active().

◆ internal_port

uint16_t nat_upnp_context::internal_port

Internal port we're binding to.

Definition at line 28 of file upnp.h.

◆ is_mapped

bool nat_upnp_context::is_mapped

true if port mapping is currently active

Definition at line 31 of file upnp.h.

Referenced by nat_upnp_get_address(), nat_upnp_is_active(), and nat_upnp_refresh().

◆ is_natpmp

bool nat_upnp_context::is_natpmp

true if NAT-PMP was used, false if UPnP

Definition at line 30 of file upnp.h.

◆ mapped_port

uint16_t nat_upnp_context::mapped_port

External port that was mapped (may differ from internal)

Definition at line 27 of file upnp.h.

Referenced by nat_upnp_get_address().


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