Interface PingerFactory

    • Method Detail

      • getInstance

        Pinger getInstance()
        Returns an implementation of the default Pinger class
        Parameters:
        tc - the traffic control value to set, use "0" for none
        allowFragmentation - whether to allow fragmentation
        Returns:
        a Pinger object.
      • getInstance

        Pinger getInstance​(int tc,
                           boolean allowFragmentation)
        Returns an implementation of the Pinger class associated with the socket configured for the given traffic control and fragmentation bits.
        Parameters:
        tc - the traffic control value to set, use "0" for none
        allowFragmentation - whether to allow fragmentation
        Returns:
        a Pinger object.