I am going to use the PF_UNIX internal socket implementation to talk to
the resource manager. It should be fairly simple and will also let me
easily implement external sockets when I create inter resource manager
communications between multiple machines. As Spafford is saying we should
make it similar to lpr. I will begin work tomorrow and should hopefully
have 1.0 Beta out by early next week.
Thanks
Dave
---------- Forwarded message ----------
Date: Tue, 29 Sep 1998 18:45:28 -0500
From: Gene Spafford <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Question
I would do it similar to the lpr daemon.
Have a daemon start up and create a "well-known" Unix-domain socket to
listen on. Clients connect to the socket and get a clone of it through
which they communicate with the resource manager.
If a client exits, the manager can detect that the other side of the socket
is closed, and it can close its side.
It provides a consistent interface, and is not accessible outside the
machine (and shouldn't be). Plus, if the socket is created with restricted
access rights, only authorized processes will be able to connect.
--spaf
***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************