View Full Version: Winsock tutorial

C++ Learning Community > Recommended Resources > Winsock tutorial


Title: Winsock tutorial


that person - December 27, 2003 07:30 PM (GMT)
I was wondering if anyone knows any good console winsock client applications. All I need to know is how to make one that connects to a server on port 25 and sends some commands. If it's not too much to ask, a server source code would be nice too. Thanks in advance
That Person

Maverick - December 28, 2003 02:43 PM (GMT)

Legacy C0der - March 8, 2004 11:30 PM (GMT)
Where I first learned: http://gametutorials.com/Tutorials/Network...working_Pg1.htm.

Well commented, easy-to-learn WinSocket [2] examples..

You might not be able to use port 25 (unless you are trying to connect to an existing service), as, generally, ports under 2000 are reserved.

Incubator - March 9, 2004 11:01 AM (GMT)
correctiion, ports under 1025 are reserved
above are free to use

KTC - March 9, 2004 12:50 PM (GMT)
He did say he was connecting to a server on port 25. So I would persume he's connecting to a smtp server to send email or something.

myork - March 9, 2004 01:29 PM (GMT)


If you just want to connect and send commands use telnet.
Great tool. Will connect to any port and you can just type the command.

If you are connecting to 25 you better know how to talk SMTP. PS If you are trying to work out if the mail host can be used as a spam relay your a bad person.

zlice0 - March 19, 2004 11:44 PM (GMT)
if you just want to connect to port 25 (mainly smtp) you could just get ncat.

http://www.atstake.com/research/tools/network_utilities/


it doesn't always work that great because it only gives you what the server sends, but i find it useful.




* Hosted for free by InvisionFree