make a tcp connection

hi all
could you please help me writing a program that gives a host and a port and make a tcp connetion with it ?
this is known as socket programmer, or atleast that's the method most would use for a connection through a port. It's pretty hard but i'll get you a link for how to do it.

http://beej.us/guide/bgnet/
Topic archived. No new replies allowed.