Dynamic Configuration Interface based on Unix Domain sockets.
Easy to implement, no external dependencies needed
Supports both synchronous requests and asynchronous events
Local machine only
Configuration
Minimal working configuration
{
...SDK config params...
"ci_unix_domain" : {}
}
All configuration parameters
"sock"
Path to unix domain socket file created by CI. Socket acts like a bi-directional channel, which means one file is used for receiving requests from and sending responses to your app. SOCK_SEQPACKET socket type is used.
Default:"/var/run/afwrt-ci.sock"
"su_only"
Allow access to file to superuser only.
Default:1
Path to unix domain socket file created by your app. Socket for all kinds of async events from SDK, such as "route_connected", "bandwidth_info", etc. SOCK_DGRAM socket type is used.
It's safe to create "async_sock" sometime later. CI can store up to 10 last events in memory before file will be actually created.
Default:""(empty, disabled)
Handy flag to fast disable dynamic interface not removing "ci_unix_domain" configuration section