I develop a winsock server,when no client connect ,it blocked at accept,
int Run(){
.....
newsockfd = accept(s, (struct sockaddr *)from, &from_len);
...
Quote:
}
This winsock server is a windows nt service,when the service receive stop
control,it must return from Run()
Function.but accept is a block function,how can i return from Run() Function
?
thanks!