All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pcap.spi.Statistics Maven / Gradle / Ivy

There is a newer version: 1.5.1
Show newest version
/*
 * Copyright (c) 2020-2021 Pcap Project
 * SPDX-License-Identifier: MIT OR Apache-2.0
 */
package pcap.spi;

/**
 * As returned by the {@link Pcap#stats()}.
 *
 * @since 1.0.0
 */
public interface Statistics {

  /**
   * Number of packets received.
   *
   * @return returns number of packets received.
   * @since 1.0.0
   */
  int received();

  /**
   * Number of packets dropped.
   *
   * @return returns number of packets dropped.
   * @since 1.0.0
   */
  int dropped();

  /**
   * Number of packets dropped by interface (only supported on some platforms).
   *
   * @return returns number of packets dropped by interface.
   * @since 1.0.0
   */
  int droppedByInterface();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy