Using Sockets in C++


I am just a beginner C++ programmer. Have knowledge of PHP. I chose code::blocks as the environment (well, firstly, it seems to me more convenient than the visual, and secondly, cross-platform support at the highest level, which is the main reason for choosing code::blocks). I use gcc as a compiler .

And so the question is: how to use sockets? Specifically, examples of both client and server (listening) sockets are needed. I didn’t find how many examples on the Internet, none of them work or work using .NET, which I don’t need at all.



Chris Kaspersky. Winsock game tutorial

Good article. I wrote a work with sockets on it. The example is 100% working.

Scroll to Top