javascript - Getting data from client Nodejs -


i made simple server in nodejs. want connect server other application (app in c++) on rasppserypi. i'm making connection , sending datastring raspberry node server.

so there question: how can "catch" data raspberry sending server?

you can use multiple options:

  1. make simple http server. express 1 of used modules http servers in node.js. fast setup , easy use. http://expressjs.com/en/starter/hello-world.html boost easy use c++ part. how send http request , retrieve json response c++ boost

  2. make tcp connection between them both. can make tcp connection between them both. use boost c++ part , internal net module of node.js https://gist.github.com/tedmiston/5935757

  3. use node.js on raspberrypi well. can run node.js raspberrypi , make client server communication in snippet above. node.js can call c++ program child process.

  4. there many other options should easiest ones. depends on actual use case, want build.


Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -