Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / examples / Borland / Broadcaster.idl
blobcb80c7fae57b6397a54db2d5b89a9e0326dcd30c
1 /* -*- C++ -*- */
2 #include "Receiver.idl"
4 interface Broadcaster
6 // = TITLE
7 // This interface is to be implemented by the simple chat server.
8 // It broadcasts messages received from one registered client to
9 // all its registered clients.
11 exception CannotAdd
13 string reason_;
16 exception CannotRemove
18 string reason_;
21 void add (in Receiver r_, in string nickname)
22 raises (CannotAdd);
23 // Registers a Receiver with the chat server. A registered client
24 // must call un_register before it goes away.
26 void remove (in Receiver r)
27 raises (CannotRemove);
28 // Unregisters a Receiver.
30 void say (in Receiver r, in string text);
31 // Say something to all registered clients.