What I would like to achieve by asking this question is to learn how to send and receive 2-Dimensional Arrays to another computer.
The context is that the 2-D Array is the map for my game, and when I start my game, I would like an option to be a server or client(if client, specify the server IP) and then the server would send the client (One of which would be another person, with a different IP) the 2D array when they connect.
I hope this all makes sense, I have given this ago but I couldn't get it working, I have tried with Datagram Packets, but I couldn't figure out how to send all the 2D array in segments, and then turn it back into a 2D array.
What type of Stream or general networking object do I need to use? And will it be-able to send the 2D array? Can you give an example to help me set it up?
Also to note, I will afterwards be sending Player Coordinates and Map Changes, so If the Networking object works with that too, then that's a plus.