I know this question have been asked and answered several times, but since I wasn't satisfied with those, I decided to make a new thread. I have a 2D map array, which I want my server to send to the client. So other than arranging the packet manually like this
{
DataPacket << data[0] << data[1] << data[2]....
}
is there a better and quicker way to store the complete 2D array into the packet and send it to the client?