SRL Archive - Java Help and Tutorials

Java Server-Client Environment


Trifonius

2008-01-16 15:34:36

I started making a multiplayer snaker version. I managed to create a little server that can exchange data with the clients, using the socket thing. But it sucks²…
So… what's the best way to exchange data between the server & client?

I experimented with
out = new PrintWriter(socket.getOutputStream(), true);
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
but I don't fully understand it…

Thx!