I have uploaded the source code of a program that I made about a year ago, for someone who played/plays Tibia - where getting disconnected may be crucial.
How it works;
1. You or your friend starts the server (obviously he who has the most disconnections / worst network connection)
2. You or your friend connects to the server
3. If one of you disconnects from the server or the server disconnects, so that the client drops, then an alarm will be played and you'll get a messagebox, so that even if you missed the alarm you'll still be noticed.
Notes:
1. I did not write the code for playing the alarm, sadly.
2. I recorded the alarm, you may change it, quite obvious though.
3. The reason the alarm doesn't play endlessly is that I have had programs that do that and I, as a user, can say that I hate that.
4. I have commented as well as I could, although there's actually not a lot of code.
If you have any questions, suggestions or bug reports, please be kind and post them in here!
Source code:
RapidShare: Easy Filehosting
Ps. The point is that, when you or your friend gets disconnected, the other person logs in to the first person's account, to save him from death
Pictures:
Server
Client