Compartilhar via


MIB_UDPROW (Compact 2013)

3/26/2014

This structure contains address information for sending and receiving User Datagram Protocol (UDP) datagrams.

Syntax

typedef struct _MIB_UDPROW {
  DWORD dwLocalAddr; 
  DWORD dwLocalPort; 
} MIB_UDPROW, *PMIB_UDPROW;

Members

  • dwLocalAddr
    The IP address on the local device.
  • dwLocalPort
    The port number on the local device.

Remarks

The GetUdpTable function retrieves the IPv4 UDP listener table on the local device and returns this information in a MIB_UDPTABLE structure. An array of MIB_UDPROW structures are contained in the MIB_UDPTABLE structure.

The dwLocalAddr member is stored as a DWORD in the same format as the in_addr structure. In order to use the dwLocalAddr member, the ntohl or inet_ntoa functions in Windows Sockets or similar functions may be needed.

The dwLocalPort member is in network byte order. In order to use the dwLocalPort member, the ntohs or inet_ntoa functions in Windows Sockets or similar functions may be needed.

The MIB_UDPTABLE structure contains the UDP listener table for IPv4 on the local device. The name is based on the definition of this table in RFC 1213 published by the IETF. This table contains UDP endpoints for IPv4 that have been bound to an address. Be aware that an application can create a UDP socket and bind it to an address for the sole purpose of sending a UDP datagram, without an intention of receiving packets by using this socket (functioning as a listener).

The header file organization has changed. This structure is defined in the Udpmib.h header file instead of in the Iprtrmib.h header file. Be aware 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

Header

iprtrmib.h,
ws2def.h,
ws2ipdef.h

See Also

Reference

MIB Structures
GetExtendedUdpTable
GetUdp6Table
GetUdpTable
in_addr
inet_ntoa
IP Helper Structures
MIB_UDP6ROW
MIB_UDP6TABLE
MIB_UDPSTATS
MIB_UDPTABLE
ntohl
ntohs