RE: RE: Java Tutorial : How To Create Connection With Socket Programming On NetBeans
You are viewing a single comment's thread from:

RE: Java Tutorial : How To Create Connection With Socket Programming On NetBeans

Words
58
Reading
1 min
Listen
Play
8y

Dude, you should do it with Thread. One Thread for each incoming client. Build a class, that extends java.lang.Thread.
You will get a much cleaner code and the handlling of the clients is much easier.
Also, endless loops are never good. Make an escape point to the loop, e. g. buy pressing a key on the server console.

@derwunner: Dude, you should | Ecency