Class UDPControlThread

java.lang.Object
networkTransfer.receive.UDPControlThread

public class UDPControlThread extends Object
Thread for receiving and responding to UDP commands and requests over the network

Currently only supporting NEtwork discovery.

Author:
Doug Gillespie
  • Constructor Details

    • UDPControlThread

      public UDPControlThread(NetworkReceiver networkReceiver)
  • Method Details

    • startThread

      public boolean startThread(int udpPort)
      Start the udp thread. If its running, then leave it running.
      Parameters:
      udpPort -
    • runThreadLoop

      public void runThreadLoop()
      This is where it sits for ever - or until it's told to bomb out, e.g. to restart with a different port address.
      Parameters:
      udpPort -