Monday, March 14, 2016

Next week, 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) Goto project properties->Configuration Properties->Debugging->Command Arguments=localhost
This is a MSDN doc about the accept function in the server.

No comments: