MIB_UDPSTATS structure (udpmib.h)

The MIB_UDPSTATS structure contains statistics for the User Datagram Protocol (UDP) running on the local computer.

Syntax

typedef struct _MIB_UDPSTATS {
  DWORD dwInDatagrams;
  DWORD dwNoPorts;
  DWORD dwInErrors;
  DWORD dwOutDatagrams;
  DWORD dwNumAddrs;
} MIB_UDPSTATS, *PMIB_UDPSTATS;

Members

dwInDatagrams

The number of datagrams received.

dwNoPorts

The number of datagrams received that were discarded because the port specified was invalid.

dwInErrors

The number of erroneous datagrams received. This number does not include the value contained by the dwNoPorts member.

dwOutDatagrams

The number of datagrams transmitted.

dwNumAddrs

The number of entries in the UDP listener table.

Remarks

The GetUdpStatistics function returns a pointer to a MIB_UDPSTATS structure.

On the Microsoft Windows Software Development Kit (SDK) released for Windows Vista and later, the organization of header files has changed. This structure is defined in the Udpmib.h header file, not in the Iprtrmib.h header file. Note that the Udpmib.h header file is automatically included in Iprtrmib.h, which is automatically included in the Iphlpapi.h header file. The Udpmib.h and Iprtrmib.h header files should never be used directly.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header udpmib.h (include Iphlpapi.h)

See also

GetTcpStatistics

GetUdpStatistics

MIB_UDPROW