I'm looking to make an irc bot in C++ and I need it to connect to 2 irc servers (TCP), so far i've got it connecting to 1 server and reading back info in a while loop, but i can't see how i could use this method on 2 connections. In VB it'd be easy, but VB is too cpu hungry for what I want to achieve.
Maybe I'm going about this it totally the wrong direction. Can anyone help?

oh PS later on in the development i'll need to use UDP sockets too, so i need a method that can allow for that also