i've written a rpg/chat type of program. it's multiuser that uses threads. my question is, do i need to use a join when calling the stop method of a thread? basically i'm having this problem where if the user disconnects from the server like 5 or 6 times, the client freezes. if left to try to let the client side app finish, the whole system will freeze up.
here's the source code, if you'd like to see what i've done right now.
Server Source Code
Client Source Code
and the classes, if you just want to run it. you'll have to use the -cp flag. i guess the command could be something like:
java -cp $HOME/grime/classes grime_client.grime_client
or
java -cp $HOME/grime_server/classes grime_server.grime_server
this is pretty much my second java program and my first using threads and sockets, so i know it's probably ugly and unelegant.
Server Classes
Client Classes
edit: oops! looks like i left in some temp files in the sources archives. they're something like *.java~X where X is some number. i think they should be alright to delete.