Updated main.cpp
This commit is contained in:
parent
cf0b9f3f06
commit
8fa85dffc8
1 changed files with 4 additions and 3 deletions
|
|
@ -20,10 +20,11 @@ int main() {
|
||||||
SOCKET clientSocket = socket.winAccept();
|
SOCKET clientSocket = socket.winAccept();
|
||||||
if(clientSocket == INVALID_SOCKET) continue;
|
if(clientSocket == INVALID_SOCKET) continue;
|
||||||
/*
|
/*
|
||||||
|
* This is where client handling starts.
|
||||||
* RECEIVING CLIENT PACKET
|
* RECEIVING CLIENT PACKET
|
||||||
* 1. Receive raw bytes
|
* 1. Receive raw bytes,
|
||||||
* 2. Parse bytes from packet
|
* 2. Parse bytes from packet,
|
||||||
* 3. Put into components understandable for server
|
* 3. Put into components understandable for server.
|
||||||
*/
|
*/
|
||||||
char buffer[131] = {};
|
char buffer[131] = {};
|
||||||
buffer[0] = recv(clientSocket, buffer, sizeof(buffer), 0);
|
buffer[0] = recv(clientSocket, buffer, sizeof(buffer), 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue