void ARamaUDPReceiver::Recv(const FArrayReaderPtr& ArrayReaderPtr, const FIPv4Endpoint& EndPt)
{
int32 dataByteNum=ArrayReaderPtr->Num();
TArray<uint8> ReceivedData;
for (int i = 0; i < dataByteNum;i++)
{
uint8 tmp;
*ArrayReaderPtr << tmp;
ReceivedData.Add(tmp);
}
ReceivedData.Add(' ');
FString tryToString(reinterpret_cast<const char*>(ReceivedData.GetData()));
ReceivedData.RemoveSingle(' ');
ScreenMsg("Received from "+EndPt.ToString()+", Received bytes = ", dataByteNum, ", Reveived String ="+tryToString);
BPEvent_DataReceived(ReceivedData, tryToString);
}