Correction of the UDP/ TCP handling methods.