sony / nmos-cpp

An NMOS (Networked Media Open Specifications) Registry and Node in C++ (IS-04, IS-05)
Apache License 2.0
136 stars 79 forks source link

Enabling client and server sockets binding on specified network interfaces. #324

Closed lo-simon closed 1 year ago

lo-simon commented 1 year ago

Currently, there is no support for the client websocket binding, it is due to missing implementation in the cpprestsdk. I have been attempting to patch the cpprestsdk to add this feature, unfortunately, when I tested the client websocket binding, it was still using the available network interface instead the one specified.

Even if that work, we have no idea how long will cpprestsdk merge the patch.

So for now, we are leaving the client websocket binding out. Users can specify the binding interface via the client_address and the server_address in the settings JSON. where client_address - IP address of the network interface to bind client connections for Linux (no websocket support) server_address - IP address of the network interface to bind server connections