OpenHausIO / connector

Connector between backend & local network
MIT License
1 stars 2 forks source link

raw socket #53

Open mStirner opened 1 month ago

mStirner commented 1 month ago

There are some Stolpersteine to solve, to work with raw sockets.

The biggest problems:

Due to the inactivity on the module no improvements are awaited.

Instead of using the module in a worker thread spawn a node.js child process, that uses the bridge.js cli tool.

In general it would be better to add a "icmp" socket type to the backend: Additional to the iface.httpAgent() a iface.ping() method could be added for icmp socket interfaces.

A ping could also implemented without a special socket type "icmp". When a interface is added, simple create similar to the Bridging request #51 a socket from type "raw" when .ping() is called and send/receive icmp messages. (Implemented under the hood in connector & backend)

Related issues: