I’m just a novice programmer in C++. There is PHP knowledge.
As a medium, I chose Code :: Blocks (well, first, it seems to me more conveniently visual, secondly support cross-platform at the highest level that is the main reason for choosing Code :: Blocks). as a compiler I use GCC .
And so the question: how to use sockets? Specifically need examples and client and server (listening) socket. On the Internet, how many examples did not find, none works or works using .NET, which I do not need absolutely.
Answer 1, Authority 100%
Windows:
Chris Kaspersky. Tutorial game on Winsock
Good articles. I wrote to her work with sockets. Example there 100% worker.
Answer 2, Authority 40%
Unix:
Windows:
- Running The Winsock Client and Server Code Sample
- Complete Winsock Client Code
- Complete Winsock Server Code
Answer 3, Authority 20%
Very good article on Windows network programming in Russian . Plus MSDN on features to help.