Clan x86

Technical (Development, Security, etc.) => JavaOp Board => JavaOp Support Archive => Topic started by: Lance on August 13, 2008, 04:22:11 pm

Title: Catching Java.net.SocketException Disconnect
Post by: Lance on August 13, 2008, 04:22:11 pm
Code: [Select]
[14:19:37.728] java.net.SocketException: Connection reset
[14:19:37.744] java.net.SocketInputStream.read(Unknown Source)
[14:19:37.790] java.net.SocketInputStream.read(Unknown Source)
[14:19:37.790] bot.PacketThread.run(PacketThread.java:139)
[14:19:57.712] WARNING: Keepalive failed to send: java.net.SocketException: Socket closed

I'm trying to make a plugin to reconnect my bot after it is disconnected like it was above. When I create PluginMain, what do I need to implement so I may have a method availiable to catch it. Furthermore, what method is it? :p

Thanks.
Title: Re: Catching Java.net.SocketException Disconnect
Post by: iago on August 13, 2008, 08:51:33 pm
I don't think that's the kind of thing that could be done in a plugin, I think it's something in the core.

(disclaimer: I'm not positive)
Title: Re: Catching Java.net.SocketException Disconnect
Post by: Lance on August 14, 2008, 11:21:14 am
I'm going to break JavaOP2. LOL.
Thanks :)