This is part of a messenger project in java. Because clients use direct connections to chat, I want eavry client to listen on some port, and others to make a socket ...
I am very sorry to ask such a basic question but I am new to threads and socket programming. I am trying to write a multithreaded socket program but it always ...
i see, i will use messages in the catch exception. when an exception is thrown , the thread is also closed? i've replaced the empty IOException catch with this and it is behaving ok now, but i don't know if the thread is closed by JVM or by the fact that i'm setting isOpened=false and the while isn't executing no more ...