2 #include
"Receiver.idl"
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.
16 exception CannotRemove
21 void add
(in Receiver r_
, in string nickname
)
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.