haitao: 哦,对啊--不过read是有超时的,但是我已经设了1秒,所以函数的超时值其实是要先减掉1秒的 [阅读: 386] 2005-03-21 09:53:42 options.c_cc[VTIME] = 10; /*150 设置超时15 seconds (n*100ms)*/