I heard the old paradigm is the new thing, so I abandoned NIO for now.
That is the best practise for Threads on the client, when using standard java Sockets? One thread for UI, and one for networking? Should I just reference the networking Thread in the UI-instance?
How would they communicate? Adding packets to a thread-safe queue for sending to the server, and then looping checking if there is something to be read from the InputStream? Is it okay to have both input and output on the same thread?
How would this networking thread work? I can't just loop (apparently) because reading from the inputstream will block.
So how is this done? Examples and pseudocode are appriciated