in reply to Re^3: Async socket connection
in thread Async socket connection

Hi Corion, thank you for your insight! Would it be possible to ask for a boilerplate of what you mentioned? I've done some basic work with IO::Socket::INET and what I had tried to do was along the lines of creating an INET socket with client and server using PeerAddr/PeerPort & LocalPort but was never able to accomplish the task. I had previously looked over AnyEvent and IO::Select but was unable to figure out where to start with the type of application I'd use them for. Thank you for any assistance!

Replies are listed 'Best First'.
Re^5: Async socket connection
by Corion (Patriarch) on Feb 09, 2017 at 15:53 UTC

    I'm not sure I could do better than the documentation that I already linked.

    See the EXAMPLE section in IO::Select and AnyEvent::Socket.

    Maybe you can ask questions by showing actual code you have which tries to use IO::Select or AnyEvent::Socket or threads and tell us how it fails for you to do what you want.