udpportdeclare message now secure. Error handling now implemented for all
networking operations.