1. revise tcpclient.c for using select() for read/write
2. add timer mechanism