// **********************************************************************
//
// Copyright (c) 1999
// Object Oriented Concepts, Inc.
// Billerica, MA, USA
//
// All Rights Reserved
//
// **********************************************************************

#ifndef RECEIVER_IDL
#define RECEIVER_IDL

/**
 *
 * An interface for receivers of chat messages.
 *
 * This interface must be implemented by all "chat clients". "Chat
 * client" in this context means that a chat client behaves like a
 * typical client from the user point of view, i.e. the user connects
 * with a chat client to a chat server. However, from the CORBA point
 * of view the chat client is of course also a server, since it
 * implements an interface with an implementation object and provides
 * the chat server with access to that object.
 *
 * @see Broadcaster
 *
 **/

interface Receiver
{
    /**
     *
     * Print a text.
     *
     * This message is called by the chat server on each client for
     * every new message.
     *
     * @param text The text to print.
     *
     **/

    oneway void print(in string text);
};

#endif
