struct timeval:代表时间间隔。常用于socket的select函数,指定函数最大等待时间。 struct fd_set:集合,可以将socket放到集合中,然后用select函数测试socket是否可读。