Query whether a given connection is local.
A connection is considered local if it is currently communicating though a socket only used for local traffic. This ensures the device has not opened any connections through local firewall. Note this assumes the device is behind a firewall. If the device is not behind a firewall, it is possible for a connection to be falsely considered local.
The result of this query should not be cached as it may change.
NABTO_DEVICE_DECL_PREFIX bool NABTO_DEVICE_API
- [in] The device.
- [in] The connection reference to query.
true iff local, false otherwise