Interface UdpBroadcastHandlerInterface

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean handle​(java.net.InetAddress localAddress, java.net.DatagramPacket packet, java.net.DatagramSocket socket)
      Handle a broadcast received.
    • Method Detail

      • handle

        boolean handle​(java.net.InetAddress localAddress,
                       java.net.DatagramPacket packet,
                       java.net.DatagramSocket socket)
                throws java.io.IOException
        Handle a broadcast received. This may be any broadcast or only broadcasts on the local interface addresses passed to UdpConnection.sendRecvBroadcast(java.net.DatagramPacket, int, int, int, com.metratec.lib.connection.UdpBroadcastHandlerInterface).
        Parameters:
        localAddress - Address of the interface that received the broadcast.
        packet - Broadcast packet.
        socket - Socket that may be used to send broadcasts back to the client that sent "packet".
        Returns:
        true if the server should continue to run, false if it should terminate.
        Throws:
        java.io.IOException - if an I/O error occured.