multitool
Class MultiClient
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiClient
public MultiClient(MultiClientListener listener)
- Parameters:
listener
-
MultiClient
public MultiClient()
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
- - Stringcommand
- - String
Whispers the input to the designated user.
fileSend
public void fileSend(java.lang.String filename,
java.lang.String recipient)
- Parameters:
filename
- - Stringrecipient
- - String
Sends a file to the designated recipient
whoInquire
public void whoInquire()
- Implements the client side of the "WHO" command.