Adding initial code of the DiscardServer example.