引用:void select_sleep(int i)
{
struct timeval timeout;
timeout.tv_sec = i;
timeout.tv_usec = 0;
select( 0, NULL, NULL, NULL, & timeout );
}
引用:void select_sleep(int i)
{
struct timeval timeout;
timeout.tv_sec = i;
timeout.tv_usec = 0;
select( 0, NULL, NULL, NULL, & timeout );
}
Earth_Nie 于 2009-02-10 15:33:15发表:
哈哈 ??俄 找的就是?? ?想到??也可以用?睡眠?程。
xymail110 于 2008-09-17 13:05:21发表:
看不太懂,能再详细点么?