Class Slave


public final class Slave extends AbstractCommunicator
The slaves's class having in charge to receive messages from the master, treat them and return responses.
Author:
Zleurtor
  • Method Details

    • main

      public static void main(String[] args)
      Starts the slave application.
      Parameters:
      args - The arguments of the slave application (no one is used;-)
    • discoverReceived

      public static void discoverReceived(DatagramPacket packet) throws IOException, ClassNotFoundException
      A "discover" message has been received, treat it.
      Parameters:
      packet - The datagram packet containing the discover message.
      Throws:
      IOException - If an I/O error occurs while reading stream.
      ClassNotFoundException - If a network object cannot be unmarshalled.