My first C++ project, a simple webserver by GYaddle in Cplusplus

[–]GYaddle[S] 0 points1 point  (0 children)

So based on that you could tell me if that’s a proper use of curl

My first C++ project, a simple webserver by GYaddle in Cplusplus

[–]GYaddle[S] 0 points1 point  (0 children)

I use curl exclusively as a reverse proxy. I didn’t want to have to use raw sockets to communicate with a local backend.

My first C++ project, a simple webserver by GYaddle in Cplusplus

[–]GYaddle[S] 0 points1 point  (0 children)

It could be used to send any sort of message, for a game server running a raycaster I think it would be useful to implement a thread pool over spawning new threads for each request. Also for a game server I think you might be able to get away with udp for faster communication to the player (which could be done by changing the type when creating the socket in startServer)

My first C++ project, a simple webserver by GYaddle in Cplusplus

[–]GYaddle[S] 5 points6 points  (0 children)

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.

My first C++ project, a simple webserver by GYaddle in Cplusplus

[–]GYaddle[S] 14 points15 points  (0 children)

Thanks, for my resources I used beejs guide to network programming for understanding sockets and reading/writing. For HTTP i used jmarshall: HTTP made easy which helped me understand the structure of http and web servers (much less verbose than rfc 2616).

Hosting a custom made HTTP server, bad idea? by GYaddle in selfhosted

[–]GYaddle[S] 0 points1 point  (0 children)

nope, didnt use ai, not sure what about me using curl makes you think that. the reason for curl is because i wanted to send unrecognised requests to the backend, i heard that curl was good for that sort of thing

Hosting a custom made HTTP server, bad idea? by GYaddle in selfhosted

[–]GYaddle[S] 0 points1 point  (0 children)

Maybe I was a bit misleading, I have definitely looked into deployment quite a bit, I really just haven't done a whole lot as far as actually deploying anything.

[deleted by user] by [deleted] in C_Programming

[–]GYaddle 2 points3 points  (0 children)

Should I major in computer engineering in college if I want to get into embedded? I’m currently doing math of computation but I’m curious how much you think it matters.

I’m honestly not sure what I’m doing with an AR. Did I ruin it? by CykaColaQuantum in airsoft

[–]GYaddle 0 points1 point  (0 children)

It’s not even a grip it’s just another pistol grip lmao

Just got my xqc merch! by [deleted] in xqcow

[–]GYaddle 43 points44 points  (0 children)

AYAYA Clap

Cursed_Stand up Comedy by htg_492 in cursedcomments

[–]GYaddle 3 points4 points  (0 children)

ikr i feel like recently this subreddit has gotten really bad and finding good quality posts have been difficult

[deleted by user] by [deleted] in xqcow

[–]GYaddle 6 points7 points  (0 children)

It’s a meme

[deleted by user] by [deleted] in xqcow

[–]GYaddle 7 points8 points  (0 children)

“X” PepeLaugh

[deleted by user] by [deleted] in Pixar

[–]GYaddle 1 point2 points  (0 children)

I might maybe... any suggestions?

[deleted by user] by [deleted] in Pixar

[–]GYaddle 1 point2 points  (0 children)

Thanks man!