Beginning to handle proper connection handling loop in main function
This commit is contained in:
parent
b5b0617125
commit
0b66a284be
1 changed files with 4 additions and 1 deletions
|
|
@ -18,7 +18,10 @@ int main() {
|
||||||
socket.winListen();
|
socket.winListen();
|
||||||
|
|
||||||
socket.running = true;
|
socket.running = true;
|
||||||
socket.winAccept();
|
while(socket.running){
|
||||||
|
SOCKET clientSocket = socket.winAccept();
|
||||||
|
if(clientSocket == INVALID_SOCKET) continue;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue