MIB_UDPSTATS

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

typedef struct _MIB_UDPSTATS {
  DWORD   dwInDatagrams;    // received datagrams
  DWORD   dwNoPorts;        // datagrams for which no port exists 
  DWORD   dwInErrors;       // errors on received datagrams
  DWORD   dwOutDatagrams;   // sent datagrams
  DWORD   dwNumAddrs;       // number of entries in 
                            // UDP listener table
} MIB_UDPSTATS,*PMIB_UDPSTATS;

Members

dwInDatagrams
Specifies the number of datagrams received.
dwNoPorts
Specifies the number of received datagrams that were discarded because the port specified was invalid.
dwInErrors
Specifies the number of erroneous datagrams that were received. This number does not include the value contained by the dwNoPorts member.
dwOutDatagrams
Specifies the number of datagrams transmitted.
dwNumAddrs
Specifies the number of entries in the UDP listener table.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
  Windows 95/98: Requires Windows 98.
  Header: Declared in Iprtrmib.h.

See Also

GetUdpStatistics, MIB_UDPROW