Well, the host of this type of telnet connection is 'localhost' (the same computer with the programs I want to connect to). The address of program A is 9000 and the address of program B is 6060. What I was asking is if you could establish two of these connections at the same time. Here's a crude pseudo code of what I want to do:
telnet(localhost - to - 9000)
telnet(localhost - to - 6060)
//Now you can send (API) commands across both these connections to each program, when specified.
Yes, this should be possible; actually seems obviously simple now...
I would have tried this out first before posting a question, but my robot is packed away temporally, so I can't do anything with it.
If this topic was spam, I apologise (still learning/getting used to/perfecting my programing skills).