while(true) { csock = (int*)malloc(sizeof(int)); if((*csock = accept( hsock, (SOCKADDR*)&sadr, &addr_size))!= INVALID_SOCKET ) { CreateThread(0,0,&SocketHandler, (void*)csock ,0,0); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)