A TCP server/client that implements a protocol to track arbitrary state