I'm having a hard time trying to learn how to do this. I can create a TCPSocket and connect to it from a console window using telnet. But how can I connect to it using a C++ program; specifically, I want a thread that connects to a TCP server within the program so it can then send/receive text. It should be something simple that I'm missing (sorry stupid college student here).