Topic: daemon suggestion - user access to devices via IPC
One issue is that user level programs do not have general device access through libusb on Solaris and Linux.
I propose that libnfc is re-architected to be able to be a daemon which runs as root with a library ( called libnfc... ) which provides user programs with access to the daemon using IPC ( eg unix domain sockets ).
So just like PCSClite has "libpcsclite..." and "pcscd", libnfc should have "libnfc....." and "nfcd".
This could be implemented by
(a) defining a byte code protocol to go between libnfc and nfcd
(b) building nfcd as a program that implements the server side and links to the code we currently consider the source to libnfc.
(c) build a new shim libnfc which exports the current API but connects to and acts as a client to nfcd using the defined byte code from (a).
Platforms such as Windows and MacOSX don't need this deamon because libusb-win32 and IOkit both provide user level access.
Thoughts?
Last edited by snapdev (2010-07-25 16:20:31)