Final bits of code to get a clean compile of "cpature-udp-port", have not tested it yet