network
Class SendComms

java.lang.Object
  extended by network.AbCommsDG
      extended by network.SendComms
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable

public class SendComms
extends AbCommsDG
implements java.lang.Runnable, java.io.Serializable

Created on November 5, 2006, 9:14 AM
Handles communications when sending data to a remote host.

Extends AbCommsDG, sends the data packet in a loop until the loop is terminated.
The communication loop is terminated either by the object using SendComms, such as when an ack is received, or if no ack is required.

Version:
t.4
Author:
Eric Angeli
See Also:
Serialized Form

Constructor Summary
SendComms()
          Creates a new instance of SendComms
 
Method Summary
 void run()
          Handles running the thread.
 
Methods inherited from class network.AbCommsDG
addPropertyChangeListener, getBuffer, getConnectedAddress, getPacket, getPort, getPropertySupport, getRemoteHost, getRunner, getSocket, isAckRequired, isAlreadyConnected, isPauseComms, isRunning, removePropertyChangeListener, setAckRequired, setAlreadyConnected, setBuffer, setConnectedAddress, setPacket, setPauseComms, setPort, setRemoteHost, setRunner, setRunning, setSocket, startComms, stopComms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SendComms

public SendComms()
Creates a new instance of SendComms

Method Detail

run

public void run()
Handles running the thread.
Contains the communications loop.
Loops until terminated.
In the case of SendComms, this will loop until the owner recieves an ack and terminates the thread, or if no ack is required.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class AbCommsDG