NET_DVR_LOCAL_UDP_PORT_BIND_CFG

Local binding configuration structure of UDP port.

Structure Definition

struct{
  WORD     wLocalBindUdpMinPort;
  WORD     wLocalBindUdpMaxPort;
  BYTE     byRes[60];
}NET_DVR_LOCAL_UDP_PORT_BIND_CFG, *LPNET_DVR_LOCAL_UDP_PORT_BIND_CFG;

Members

wLocalBindUdpMinPort

The minimum UDP port number to be bound locally.

wLocalBindUdpMaxPort

The maximum UDP port number to be bound locally.

byRes

Reserved, set to 0.

Remarks

  • Port bind strategy: provide a port number segment to ensure all used port numbers are in the segment (except multicast); the ports from port pool are tried to bind one by one until the port is not occupied, if all ports are occupied, error will be returned; binding the system reserved ports (form 1 to 1024) is not suggested.

  • The maximum port number to be bound should be equal to or larger than the minimum port number, [0,0]: clear the binding; [0,non-0]: setting failed, as 0 can't be bound.