Class MultiMain.Sender

java.lang.Object
  |
  +--MultiMain.Sender
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
MultiMain

public class MultiMain.Sender
extends java.lang.Object
implements java.lang.Runnable

Class Sender


Constructor Summary
MultiMain.Sender()
          Constructor of class Sender
 
Method Summary
 void run()
          Calls method skicka() every second
 void skicka(java.lang.String from, java.lang.String name, java.lang.String host, java.net.InetAddress hostname, java.lang.String comment, java.lang.String commenttext)
          Creates and sends a datagram packet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiMain.Sender

public MultiMain.Sender()
Constructor of class Sender
Method Detail

skicka

public void skicka(java.lang.String from,
                   java.lang.String name,
                   java.lang.String host,
                   java.net.InetAddress hostname,
                   java.lang.String comment,
                   java.lang.String commenttext)
Creates and sends a datagram packet
Parameters:
from - Predefined String from
name - Who "from" is from
host - Predefined String host
hostname - InetAddress of the host
comment - Predefined String comment
commenttext - The message to be sent
Throws:
java.io.IOException - e if send fails

run

public void run()
Calls method skicka() every second
Specified by:
run in interface java.lang.Runnable
Throws:
java.net.UnknownHostException - uh if hostname doesn't exist
java.lang.InterruptedException - ie if sleep command fails