Class part2.chapter11.SureDelivery
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class part2.chapter11.SureDelivery

java.lang.Object
   |
   +----part2.chapter11.SureDelivery

public class SureDelivery
extends Object
implements Alarmable

Variable Index

 o alarm
 o packet
 o socket

Constructor Index

 o SureDelivery(String, String, int)

Method Index

 o alarmCall(Object)
 o buildPacket(String, String, int)
 o main(String[])
 o receivePacket()
 o sendPacket()

Variables

 o socket
  protected DatagramSocket socket
 o packet
  protected DatagramPacket packet
 o alarm
  protected Alarm alarm

Constructors

 o SureDelivery
  public SureDelivery(String message,
                      String host,
                      int port) throws IOException

Methods

 o buildPacket
  protected DatagramPacket buildPacket(String message,
                                       String host,
                                       int port) throws IOException
 o sendPacket
  protected void sendPacket() throws IOException
 o receivePacket
  protected void receivePacket() throws IOException
 o alarmCall
  public synchronized void alarmCall(Object object)
 o main
  public static void main(String args[]) throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index