| |
You are here: Experts > Computing/Technology > Focus on Java > Java > socket programming
Java - socket programming
Expert: Artemus Harper - 10/28/2009
Question hello,
I ran simple example of socket programming in Java that caught it from www.sun.com (KnockKnockServer and KnockKnockClient).First,this program was run but now, I must wait for running a lot of time and it is not stopped.When I stop it myself, it does not have any error .And debugging is with same situation.
what can I do for this problem?
I was stopped and can not to do any thing,please help me.
Thanks
Answer You can either debug the application in an IDE (such as eclipse or netbeans) and hit the suspend button to see where your program is stuck (chances are one or both computers are waiting for the other to communicate first). You can also use control-break in the terminal window of the running java program too see the stack trace of all the threads.
Add to this Answer Ask a Question
|
|