|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
ChatFrameListener | Interface ChatFrameListener specifies the interface for an object that is
triggered when the user sends a line of text in a ChatFrame . |
ChatRef | Interface ChatRef specifies the M2MI remote interface for a rudimentary chat object. |
Class Summary | |
---|---|
Chat | Class Chat is a rudimentary M2MI-based chat application. |
ChatFrame | Class ChatFrame encapsulates the UI for a rudimentary M2MI-based chat application. |
Package edu.rit.chat1 provides the Chat Demo Application Version 1, an M2MI-based chat application. The Chat Demo is intended merely to demonstrate M2MI omnihandle invocations and is not intended to be a full-featured chat application.
To run the Chat Demo application, do the following steps on each participating machine:
The Chat program displays a simple chat UI (an instance of class ChatFrame), and the program exports a chat object (an instance of class Chat) that implements interface ChatRef. When the user sends a line of text in the UI, the line is broadcast to all the chat objects by calling putLine() on an omnihandle for interface ChatRef. When each chat object receives a putLine() invocation, it displays the line of text in the chat log in its UI. In this way the line of text appears in all the chat programs that are running out there.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |