On 03-09-04 13:59:59 CEST, Michael Bell wrote:
The access to the fifos and messagequeue can be restricted very easily via chmod 600 and it looks fast enough. If somebody knows a better way then I'm open for every recommendation. We need a fast local communication between a server and client with the same UID and GID.
isn't that a perfect job for a unix domain socket? you can chmod(2) it (or use umask(2) before socket(2)), you accept(2) a connection from a client, read(2) a request, write(2) the reply and close(2) it or keep it open, just like with your two fifos. a socket behaves just like a fifo that works both ways.
I think about this too because it is much easier to program but some time ago I read an article that NetBSD doesn't support Unix domain sockets (PF_UNIX, PF_LOCAL). Does BSD support domain sockets now? I don't use any BSD so I cannot verify it but if domain sockets work on BSD then it is much easier to program.
I will rewrite the daemon today and test the performance again.
Thanks Michael
P.S. I think PF_LOCAL is part of POSIX so perhaps we should ignore such a problem.
--
-------------------------------------------------------------------
Michael Bell Email: [EMAIL PROTECTED]
ZE Computer- und Medienservice Tel.: +49 (0)30-2093 2482
(Computing Centre) Fax: +49 (0)30-2093 2704
Humboldt-University of Berlin
Unter den Linden 6
10099 Berlin Email (private): [EMAIL PROTECTED]
Germany http://www.openca.org
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ OpenCA-Devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openca-devel