new to networking in generell

well I need a simple and nice example of how networking in java works. just the basics how to get information and how to send information…
does the server do a broadcast for information that all player should get, or does every player have to get it from the server.

I worked with chat examples but they are kinda confusing because they are console and there are these while(input) things…

well just try to give me a simple introduction :smiley:

thx :>

If while(input) confuses you, you should first study Java, then it’s API.

its not about that… the console examples make it confusing becuase they need to keep the main prog open… unlike in a frame example
thats what I’m looking for

Look into Google for AWT / Swing a bit, to learn how to make GUIs

Basically the server has a sort of waitForSocket type method, since it is the server and expects clients. The client says let me connect to THIS server, a socket is opened and now the server will [probably] create a new thread to handle the socket and wait for another socket.

You choose what data you send, you can send your own custom formatted data, xml data, or whatever tickles your fancy. Google (believe it or not) has plenty of good links for examples of Java networking code; I’m off to bed so see if you can find a better link than “Handling network timeouts”.