Small note
This commit is contained in:
parent
af1f9cff67
commit
0df1192679
2 changed files with 3 additions and 1 deletions
|
|
@ -58,6 +58,7 @@ int Socket::winAccept(){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
log.info("Client connected");
|
log.info("Client connected");
|
||||||
|
// handling client starts here
|
||||||
closesocket(clientSocket);
|
closesocket(clientSocket);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
#include "Socket.hpp"
|
#include "Socket.hpp"
|
||||||
|
|
||||||
#include <winsock.h>
|
#include <winsock.h>
|
||||||
|
#include <thread>
|
||||||
|
|
||||||
bool running = false;
|
bool running = false;
|
||||||
|
|
||||||
|
|
@ -16,7 +17,7 @@ int main() {
|
||||||
socket.winBind();
|
socket.winBind();
|
||||||
socket.winListen();
|
socket.winListen();
|
||||||
|
|
||||||
socket.running = true;
|
socket.running = true;
|
||||||
socket.winAccept();
|
socket.winAccept();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue