BeamMP-Server/src/Network/DataParser.cpp
Anonymous275 1f620f4093 Server Listener
Implemented the basic server system and routed the data to a new class for processing.
2020-01-29 21:27:26 +02:00

12 lines
367 B
C++

//
// Created by User on 1/29/2020.
//
#include "enet.h"
#include <stdio.h>
void ParseData(size_t Length, enet_uint8* Data, char* Sender, enet_uint8 ChannelID){ //here we will parse the data
printf("A packet of length %zu containing \"%s\" was received from \"%s\" on channel %u.\n",
Length,
Data,
Sender,
ChannelID);
}