goToMain / libosdp

Implementation of IEC 60839-11-5 OSDP (Open Supervised Device Protocol); provides a C library with support for C++, Rust and Python3
https://libosdp.sidcha.dev
Apache License 2.0
128 stars 69 forks source link

Channel API needs a new optional method called close #167

Open sidcha opened 4 months ago

sidcha commented 4 months ago

It's often convenient to let LibOSDP own the entire channel (and hence responsible for calling a channel->close()) instead of the app having to keep a reference to the channel and close it after the CP/PD has been torn down.

This issue looks rather pronounced when writing rust applications.