home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.internals
- Path: sparky!uunet!decwrl!pa.dec.com!rdg.dec.com!narcy.gao.dec.com!jfoy
- From: jfoy@narcy.gao.dec.com (John Foy)
- Subject: Re: Multiple listeners on same socket
- Message-ID: <1992Jul23.084108.22337@rdg.dec.com>
- Lines: 36
- Sender: news@rdg.dec.com (Mr News)
- Reply-To: jfoy@narcy.gao.dec.com (John Foy)
- Organization: Digital Equipment Corporation
- References: <1992Jul22.034730.12159@menudo.uh.edu>
- Date: Thu, 23 Jul 1992 08:41:08 GMT
-
-
- In article <1992Jul22.034730.12159@menudo.uh.edu>, nagappa@menudo.uh.edu (Chaitanya Nagappa) writes:
- |>From: nagappa@menudo.uh.edu (Chaitanya Nagappa)
- |>Newsgroups: comp.unix.internals
- |>Subject: Multiple listeners on same socket
- |>
- |>The following is posted for a friend of mine.
- |>-C. Nagappa.
- |>
- |>==============================================================================
- |>Howdy all,
- |>I need something equivalent to a socket, but that more than one process
- |>can listen on. This is for multiple consumers, and the output from the
- |>server can be picked up by any one of the consumers. In the simplest
- |>scenario, I have two processes doing a "listen" on the same socket,
- |>and only one of these process is trigerred to establish the circuit.
- |>Yes, I know neither BSD sockets or TLI can do this. What is then the
- |>alternative? Do I have to create my own virtual device?
- |>
- |>Message queues & FIFOs are not a viable alternative, as the information
- |>once placed cannot be ...
- |>[...]
- |>The problem of statically placing this using standard IPC methods such as
- |>message queues, FIFOs or shared memory is that by the time my processes
- |>get around to receiving the info. (worst case scenario) the call might
- |>have been cleared. So I need a phased communication of the info.
-
- I'm not sure what you mean by "phased communcation..."?
-
- I'm not entirely familiar with select etc... (being more of a VMS'r) but have
- you considered semaphores? e.g. the server pool waits on a counting semaphore
- which is incremented by the 'dispatching' process (I think you refer to this as
- the 'spawned' process)...? This way only available servers respond...
-
-
- jf
-