HTTPD:将所有传入的HTTP请求从Angular Client到C++应用
目前,我正在使用简单的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论