examples/interactive-tcp: limit the number of received bytes