I am working on a c++ client that will connect to a server I have listening on a port. I can telnet the server, connect to it with a browser, and I already wrote a java client that interacts correctly with it.
However, I cannot for the life of me figure out what I am doing wrong with the c++ client.
Here is my current working code (copied from a tutorial). Note that I have tried 5 other tutorials, gotten all of them to compile, but none will connect. They all fail on the connect call...
I am trying to reason as to what the problem could be, and since 3 other clients can connect I figure it cant be a firewall (I've tried on many computers including those that can connect with other clients) or a port forwarding problem. Can anyone shed some light on this matter?
Thanks,
-Fred