Hello again guys,

I am creating a board game, and I need for the begging to host an 10x10 array on server that will be access able for 2 clients.

I dont know if the best way to do that is Server-Client or simply P2P.'
I dont know any of this method so I need some help where or how to start.

I only want to set and get variables from the array that will be on the server.

I would go with the Server-Client method and use UDP-streaming.
Further I would consider passing an XML-string back and forth through the UDP-stream.
An XML-string is quite small and UDP is perfect for this type of networking.
The game Quake III Arena uses this technique and it has a bit more data flowing to and from the servers.

Take a look at this UDP project.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.