HTTPD:将所有传入的HTTP请求从Angular Client到C++应用

发布于 2025-02-11 12:24:52 字数 267 浏览 1 评论 0原文

目前,我正在使用简单的Web服务器我在C ++中写了 该应用程序解析了从Angular客户端发送的HTTP消息并采取行动。 动机:C ++应用程序必须访问硬件。 JavaScript无法完成(例如) 此C ++应用程序仅启动一次,直到系统关闭为止。

我考虑以下更改: 目标(Linux)将运行httpd。 HTTPD将将所有HTTP请求路由到我的C ++应用程序。 但是C ++应用程序将在HTTPD初始化时启动。 是否可以 ?如何 ?

谢谢你, Zvika

Currently I'm using a simple web server I wrote in C++
This application parses an HTTP message sent from an Angular client and acts upon.
The motivation: The C++ application has to access hardware. It can't be done with Javascript (for example)
This C++ application is launched only once till system shutdown.

I consider the following change:
The target (linux) will run httpd.
httpd will route all HTTP requests to my C++ application.
But the C++ application will be launched once upon initialization of httpd.
Is it possible ? How ?

Thank you,
Zvika

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文