timer and tcp test example