NET_DVR_LOCAL_TCP_PORT_BIND_CFG

Local binding configuration structure of TCP port.

Structure Definition

struct{
  WORD      wLocalBindTcpMinPort;
  WORD      wLocalBindTcpMaxPort;
  BYTE      byRes[60];
}NET_DVR_LOCAL_TCP_PORT_BIND_CFG, *LPNET_DVR_LOCAL_TCP_PORT_BIND_CFG;

Members

wLocalBindTcpMinPort

The minimum TCP port number to be bound locally.

wLocalBindTcpMaxPort

The maximum TCP 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.