Tuesday, July 12, 2016

Winsock client server example from MSDN

This week (week 9), week 12, we will discuss the Winsock client server example from MSDN. There is a good Winsock Client/Server project here.
1) Create 2 C++ console projects one for the server and one for the client. Take the default settings.
2) Paste the code keeping the #include "stdafx.h" include.
3) In the client project, goto project properties->Configuration Properties->Debugging->Command Arguments=localhost
This is a MSDN doc about the accept function in the server.

No comments: