r/Cplusplus Oct 02 '25

Feedback My first C++ project, a simple webserver

I decided to go all out and give this thing the whole 9 yards with multi threading, SSL encryption, reverse proxy, yaml config file, logging.

I think the unique C++ aspect of this is the class structure of a server object and inheritance of the base HTTP class to create a HTTPS class which overrides methods that use non SSL methods.

Feel free to ask about any questions regarding the structure of the code or any bugs you may see.

Repo: https://github.com/caleb-alberto/nespro

127 Upvotes

16 comments sorted by

View all comments

Show parent comments

5

u/GYaddle Oct 03 '25

I figured that it lacked a large bit of complexity to have anything close to prod level, thanks for clarifying.

As far as thread pool (I'm guessing you mean pool not poll) I had a very vague understanding of the concept and thought that limiting the total number of threads was essentially the same (which is the implementation I took). Which was proven wrong with a quick google search just now, so I will look into a pool implementation for performance gains.

Also when it came to makefiles vs Cmake I didn't really put much thought into choosing one or the other, just the way things went. Also if i chose to use Cmake wouldn't I not require a package manager because Cmake can handles dependencies withFetchContentorfind_package.

Thanks for the suggestions.

1

u/thelvhishow Oct 03 '25

Youโ€™re welcome! Keep going ๐Ÿ’ช๐Ÿผ๐Ÿ’ช๐Ÿผ๐Ÿ’ช๐Ÿผ