This is implemented and used in the rtlsdr_pi opencpn plugin
The send tcp, and library queues should be combined and code shared
the aisdecoder should be encapsulated with a context like rtl_ais
to allow for multiple interfaces to work in the same process