in reply to Multihoming a non-blocking IO::Socket::INET

I don't entirely understand your question, but a snippet I recently wrote might give you some ideas.

Socket connection to random IP, with fallback

---
It's all fine and dandy until someone has to look at the code.
  • Comment on Re: Multihoming a non-blocking IO::Socket::INET