Class LocateConnectedMachineIPAddress

java.lang.Object
uk.ac.manchester.spinnaker.connections.LocateConnectedMachineIPAddress

public abstract class LocateConnectedMachineIPAddress
extends Object
Locate any SpiNNaker machines IP addresses from the auto-transmitted packets from non-booted SpiNNaker machines.
  • Method Details

    • locateConnectedMachine

      public static void locateConnectedMachine​(BiPredicate<InetAddress,​Calendar> handler) throws IOException
      Locates any SpiNNaker machines IP addresses from the auto-transmitted packets from non-booted SpiNNaker machines.
      Parameters:
      handler - A predicate that decides whether to stop searching (we stop if the predicate returns true). The predicate is given two arguments: the IP address found and the current time. Note that each board is only reported once.
      Throws:
      IOException - If anything goes wrong
    • main

      public static void main​(String... args) throws IOException
      A little program that listens for, and prints, the pre-boot messages published by SpiNNaker boards.
      Parameters:
      args - ignored
      Throws:
      IOException - if anything goes wrong.