I think it would be more intuitive if Socket had public members for standard operations like open, close, listen, accept, send, receive, etc.
For example wouldn't it be better instead of
#ifdef WIN32
closesocket(rej);
#else
close(rej);
#endif
to write just
close(rej); // Socket::close()
Also I still can't figure out how to control timeouts in Socket.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think it would be more intuitive if Socket had public members for standard operations like open, close, listen, accept, send, receive, etc.
For example wouldn't it be better instead of
#ifdef WIN32
closesocket(rej);
#else
close(rej);
#endif
to write just
close(rej); // Socket::close()
Also I still can't figure out how to control timeouts in Socket.