Removed old include, beginning to handle player identification packet
This commit is contained in:
parent
a20b81836d
commit
9b5225dcb1
1 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
#include "Logger.hpp"
|
#include "Logger.hpp"
|
||||||
#include "Socket.hpp"
|
#include "Socket.hpp"
|
||||||
|
|
||||||
#include <winsock.h>
|
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
@ -23,11 +22,12 @@ int main() {
|
||||||
* This is where client handling starts.
|
* 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, 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);
|
||||||
|
uint8_t packID = buffer[0];
|
||||||
|
uint8_t protVer = buffer [1];
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue