home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!chsun!Germany.EU.net!rrz.uni-koeln.de!unidui!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!opal.cs.tu-berlin.de!mauriti
- From: mauriti@cs.tu-berlin.de (Frank Hartlep)
- Newsgroups: comp.unix.programmer
- Subject: Easy multiplexing with sockets
- Date: 9 Nov 1992 14:24:05 GMT
- Organization: Technical University of Berlin, Germany
- Lines: 22
- Distribution: world
- Message-ID: <1dlsa5INNiiq@mailgzrz.TU-Berlin.DE>
- NNTP-Posting-Host: athene.cs.tu-berlin.de
-
- I'm not very familiar with the socket interface and would like
- to know if the following can be done without many problems:
- Theres a server process with a socket and a variable number of
- client processes, each with its own socket. The access to the
- server is via Sun's RPC mechanism; the only purpose of the sockets
- mentioned above is to get a notify message to the clients when
- there's some important state change in the server (this message
- then triggers a RPC to the server on the client side). Now, the
- idea is to let the server write the messages to the notify socket
- without knowing who's going to receive the message; the client
- sockets should be connected to the notify socket without the server
- being aware of it (he doesn't care who's connected). Additionaly,
- the message, which is only sent once to the notify socket, should
- be automagically multiplexed to each of the connected client sockets.
- I hope that describes more or less clearly what I mean. I'm not very
- confident this can be done, but perhaps somebody has an idea and could
- give me a hint.
-
- Thanks,
- Frank
-
-
-