Class ServerDiscovery

java.lang.Object
com.example.brickpaint.ServerDiscovery
All Implemented Interfaces:
Runnable

public class ServerDiscovery extends Object implements Runnable
[WORK IN PROGRESS] Discovery thread that runs on the server and accepts UDP broadcasts from clients looking for a corresponding Server
Author:
matde, Michiel De Mey
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Main thread that loops continuously looking for incoming data packets containing the keyword, when found it will send a return packet that it used to determine the server InetAddress
    void
    Helper function that stops the discovery thread loop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ServerDiscovery

      public ServerDiscovery()
  • Method Details

    • Stop

      public void Stop()
      Helper function that stops the discovery thread loop
    • run

      public void run()
      Main thread that loops continuously looking for incoming data packets containing the keyword, when found it will send a return packet that it used to determine the server InetAddress
      Specified by:
      run in interface Runnable