simple Qt client using TCP or UDP to transfer data