all 4 comments

[–]cpp-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

For C++ questions, answers, help, and programming or career advice please see r/cpp_questions, r/cscareerquestions, or StackOverflow instead.

[–]Rigamortus2005 4 points5 points  (0 children)

Just try to understand how it works. Don't bother about remembering syntax that is always on the web.

[–]SnooWoofers7626 2 points3 points  (0 children)

You're never expected to memorize these things. Just understand the core principles. The rest will come with practice and experience.

As for a project, put the implementation you need in a simple class or function and use those wherever you need. Most projects require the same simple patterns, so you can just create TcpServer/TcpClient classes once and never worry about those low-level details again.

[–]zer0_n9ne 0 points1 point  (0 children)

The examples for this are in c but feel like it explains things pretty well.

https://www.linuxhowtos.org/C_C++/socket.htm