×

Loading...

更正如下

if( pthread_create( &thread_id , NULL , connection_handler , (void*) &newSocket) < 0)
{
perror("could not create thread");
return 1;
}

至于event driven在C++里面几十年前就有了,这个我只是基于有人说C++做不到event driven而言。哎,无所不能的C++啊,写得越多,错得越多的C++啊。:)88了。
Sign in and Reply Report