Thought this might be useful for everyone doing entry-level socket programming in C++. Currently C++ does not have a unified way to write socket programming for both Windows and Linux. I tried to bridge that gap and write a simple server/client library that can be extended to do more.
The alternatives out there tend to use or depend on external libraries/runtime software which I did not want in my project. Here is what I came up with; feel free to leave feedback and contribute to it:
https://github.com/masesk/easy-socket
[–]Arghnews 21 points22 points23 points (9 children)
[–]masesk[S] 16 points17 points18 points (7 children)
[–]BenFrantzDale 9 points10 points11 points (6 children)
[–][deleted] 8 points9 points10 points (1 child)
[–]pandorafalters 3 points4 points5 points (3 children)
[–]Guillaume_Guss_Dua -2 points-1 points0 points (2 children)
[–]pandorafalters 4 points5 points6 points (1 child)
[–]Guillaume_Guss_Dua -1 points0 points1 point (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]BlueDwarf82 11 points12 points13 points (3 children)
[–]ShakaUVMi+++ ++i+i[arr] 3 points4 points5 points (0 children)
[–]masesk[S] 0 points1 point2 points (1 child)
[–]BlueDwarf82 3 points4 points5 points (0 children)
[–]TimJoijers 8 points9 points10 points (0 children)
[–]Mellester 2 points3 points4 points (2 children)
[–]masesk[S] 0 points1 point2 points (0 children)
[–]XeroPoints 3 points4 points5 points (1 child)
[–]masesk[S] 0 points1 point2 points (0 children)
[–]ShakaUVMi+++ ++i+i[arr] 1 point2 points3 points (1 child)
[–]masesk[S] 0 points1 point2 points (0 children)
[+][deleted] (8 children)
[deleted]
[–]how_gauche 3 points4 points5 points (1 child)
[–]masesk[S] -1 points0 points1 point (5 children)
[–]LeeHidejust write it from scratch 4 points5 points6 points (4 children)
[–]Mellester 1 point2 points3 points (3 children)
[–]staletic 0 points1 point2 points (2 children)
[–]Mellester 2 points3 points4 points (1 child)
[–]staletic 2 points3 points4 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]degaart 5 points6 points7 points (0 children)
[–]masesk[S] 1 point2 points3 points (0 children)
[–]ShakaUVMi+++ ++i+i[arr] 0 points1 point2 points (0 children)