1.将server和client端的代码分别移到server.c和client.c
2.实现server和client端keepalive超时时的相应代码