in reply to connection question with Net::OSCAR

You could cut the connection and see what happens.

non-Perl: Andy Ford

  • Comment on Re: connection question with Net::OSCAR

Replies are listed 'Best First'.
Re^2: connection question with Net::OSCAR
by paulehr (Sexton) on Dec 07, 2006 at 15:22 UTC

    I went and cut the connection. Waited a few minutes for everything to drop. Then i restored the connection. The bot never recovers and just times out. I have to manually kill the bot and restart it for it to reconnect back to the aim network. So now is there a way through Net::OSCAR where it can handle being disconnected and recover from it or will I have to come up with a different solution for handling it being dropped from the network?

      I'm not familiar with the module, but if you can't find any auto reconnect methods in the documentation, then you'll have to do it yourself.
      Just do some trivial operation that you know should always succeed and reconnect if it fails.

      non-Perl: Andy Ford

        Yea, I went over the module documentation a few times and really didn't see anything (that i can understand) that looked like I needed. I'll come up with something outside of the module to handle this. Thanks again!
Re^2: connection question with Net::OSCAR
by paulehr (Sexton) on Dec 07, 2006 at 15:08 UTC
    ouch, i feel like a boob. I'll try that and see what happens :)

      I've missed the obvious so many times myself...

      non-Perl: Andy Ford