Package 

Interface DatagramPacketFilter


  • 
    public interface DatagramPacketFilter
    
                        

    Represents a filter which selects or deselects DatagramPackets.

    • Method Summary

      Modifier and Type Method Description
      abstract boolean accept(DatagramPacket p) Determines whether a specific DatagramPacket is accepted by thisfilter i.e.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • accept

         abstract boolean accept(DatagramPacket p)

        Determines whether a specific DatagramPacket is accepted by thisfilter i.e. whether the caller should include the specifiedDatagramPacket in a selection based on this filter.

        Parameters:
        p - the DatagramPacket which is to be checked whether it isaccepted by this filter