`udpProxyAddr.sin_port = udp_accoc_resp_head.usPort;` should fix to `udpProxyAddr.sin_port = htons(udp_accoc_resp_head.usPort);`
udpProxyAddr.sin_port = udp_accoc_resp_head.usPort;should fix to
udpProxyAddr.sin_port = htons(udp_accoc_resp_head.usPort);