send packets from server; define header in packet; receive packets in client