MIB_UDP6TABLE structure (udpmib.h)

The MIB_UDP6TABLE structure contains the User Datagram Protocol (UDP) listener table for IPv6 on the local computer.

Syntax

typedef struct _MIB_UDP6TABLE {
  DWORD       dwNumEntries;
  MIB_UDP6ROW table[ANY_SIZE];
} MIB_UDP6TABLE, *PMIB_UDP6TABLE;

Members

dwNumEntries

The number of entries in the table.

table[ANY_SIZE]

A pointer to an array of MIB_UDP6ROW structures.

Remarks

The GetUdp6Table function enumerates the UDP endpoints for IPv6 that have been bound to an address on the local computer and returns this information in a MIB_UDP6TABLE structure.

This table includes the local IPv6 address, scope ID, and port information for sending and receiving UDP datagrams on the local computer. An array of MIB_UDP6ROW structures are contained in the MIB_UDP6TABLE structure.

The MIB_UDP6TABLE structure may contain padding for alignment between the dwNumEntries member and the first MIB_UDP6ROW array entry in the table member. Padding for alignment may also be present between the MIB_UDP6ROW array entries in the table member. Any access to a MIB_UDP6ROW array entry should assume padding may exist.

The MIB_UDP6TABLE structure contains the UDP listener table for IPv6 on the local computer. The name is based on the definition of this table in RFC 2454 published by the IETF. For more information, see http://www.ietf.org/rfc/rfc2454.txt. This table contains UDP endpoints for IPv6 that have been bound to an address. It should be noted that an application can create a UDP socket and bind it to an address for the sole purpose of sending a UDP datagram, with no intention of receiving packets using this socket (functioning as a listener).

The MIB_UDP6TABLE_OWNER_MODULE structure is an enhanced version of the MIB_UDP6TABLE_OWNER_PID structure that includes any available ownership data for each UDP endpoint in the table. The MIB_UDP6TABLE_OWNER_PID is an enhanced version of the MIB_UDP6TABLE that includes the process ID (PID) that issued the call to the bind function for each UDP endpoint in the table.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header udpmib.h (include Iphlpapi.h)

See also

GetExtendedUdpTable

GetUdp6Table

GetUdpTable

MIB_UDP6ROW

MIB_UDP6ROW_OWNER_MODULE

MIB_UDP6ROW_OWNER_PID

MIB_UDP6TABLE_OWNER_MODULE

MIB_UDP6TABLE_OWNER_PID

MIB_UDPROW

MIB_UDPROW_OWNER_MODULE

MIB_UDPROW_OWNER_PID

MIB_UDPTABLE

MIB_UDPTABLE_OWNER_MODULE

MIB_UDPTABLE_OWNER_PID

bind