-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more NetworkMonitor examples #1
base: main
Are you sure you want to change the base?
Conversation
@edwardalee here is the work I have done on Network Monitoring. I am tagging you here so you can have a look and possibly give some feedback. In any case, we can discuss this on our next meeting. Perhaps it should live in a separate repo, and not in I had trouble running the Probe4.lf and Probe5.lf on my Macbook. They work as non-federated, but with federated they just terminate immediately, no logging output is printed. Very strange |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very cool! Probe4.lf doesn't compile for me, however:
/Users/edwardlee/git/lf-demos/network-monitor/fed-gen/Probe4/src-gen/federate__m__0/./_simplehttpserver.h:6:10: fatal error: 'microhttpd.h' file not found
#include <microhttpd.h>
^~~~~~~~~~~~~~
1 error generated.
I think maybe it's missing a cmake-include
?
Also, the HTTP server looks nice. I've been meaning to turn the reactors here into a Lingo package. This would also enable a web socket connection. Should we use those? I haven't compared to yours...
Co-authored-by: Edward A. Lee <[email protected]>
Did you install libmicrohttpd with |
Yes, I installed it. The .h file ends up here: |
Could you try once more. I tried adding |
I had a look at Wouldnt it be easier to let a library handle the sockets and threads? |
Perhaps a compromise, where I implement the generality of your proposal (i.e. the base HTTP reactor outputs requests on its output port and responds with whatever it receives on its input port), but base it off |
This PR adds two new NetworkMonitor examples