network
Class RecieveComms

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

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

Created on November 4, 2006, 4:18 PM
Handles the recieving side of communications.

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

Constructor Summary
RecieveComms()
          Creates a new instance of RecieveComms
 
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

RecieveComms

public RecieveComms()
Creates a new instance of RecieveComms

Method Detail

run

public void run()
Handles running the thread.
Contains the communication loop.
Waits to recieve a packet on the defined port, then fires event to the owner of this comms thread to handle the incoming data.
This will loop until terminated.

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