Date: Mon, 11 Nov 1996 07:33:01 +1000 (EST) From: David Leonard <leonard@dstc.edu.au> To: hackers@freebsd.org, scrappy@ki.net Subject: Re: semaphores/shared memory Message-ID: <199611102133.HAA07495@azure.dstc.edu.au>
next in thread | raw e-mail | index | archive | help
scrappy@ki.net (Marc G. Fournier) writes: > I have a copy of Unix Network Programming, and am working on > designing a server-client system where there is one server and X clients > that are talking to it, using shared memory. > according to the book, I'm looking at using semaphores for the > IPC, and the general concepts of semaphores presented makes sense...but > it seems to only allow for a 1-1 relationship, vs a 1-many relationship. > can anyone suggestion a reference that goes a bit deeper into > shared memory/semaphores that might give me a better idea of a 1-many > relationship, if possible? > essentially, I want the server to write a line of data to > shared memory, then signal all the clients at once that the data is > there, so that they all pick up the data... you might want to look at multicast ports: the LBL conferencing tools use what they term a 'conferencing bus' to allow all the tools to talk to each other in a 1-many kind of way. AFAIK it is implemented as a multicast group on the loopback interface. d -- David Leonard Developer, DSTC The University of Queensland david.leonard@dstc.edu.au http://www.dstc.edu.au/~leonard/ "What is contemplation but laxative for the mind?" - T.A.Casady (?)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611102133.HAA07495>