Packet decoding ,client handling and testing - Compilable