multitool
Class MultiClient

java.lang.Object
  extended by multitool.MultiClient
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class MultiClient
extends java.lang.Object
implements java.awt.event.ActionListener

Author: Randall Borck -- Description: Program implements a UDP chat client on port 7000.


Constructor Summary
MultiClient()
           
MultiClient(MultiClientListener listener)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
 void addListener(MultiClientListener listener)
           
 void fileSend(java.lang.String filename, java.lang.String recipient)
           
 void process(MNSEvent mnEvent)
           
 void sendClientEvent(java.lang.String message)
           
 void startClient()
           
 void whisperMethod(java.lang.String recipient, java.lang.String command)
           
 void whoInquire()
          Implements the client side of the "WHO" command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiClient

public MultiClient(MultiClientListener listener)
Parameters:
listener -

MultiClient

public MultiClient()
Method Detail

startClient

public void startClient()

addListener

public void addListener(MultiClientListener listener)
Parameters:
listener - - @see MultiClientListener

process

public void process(MNSEvent mnEvent)
Parameters:
mnEvent - - @see MNSEvent

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

sendClientEvent

public void sendClientEvent(java.lang.String message)
Parameters:
message - - String Sends input with the "BROADCAST" server command.

whisperMethod

public void whisperMethod(java.lang.String recipient,
                          java.lang.String command)
Parameters:
recipient - - String
command - - String Whispers the input to the designated user.

fileSend

public void fileSend(java.lang.String filename,
                     java.lang.String recipient)
Parameters:
filename - - String
recipient - - String Sends a file to the designated recipient

whoInquire

public void whoInquire()
Implements the client side of the "WHO" command.