Class Peer

java.lang.Object
org.drasyl.handler.peers.Peer

public class Peer extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • role

      public Role role()
    • inetAddress

      public InetSocketAddress inetAddress()
    • sent

      public long sent()
      Returns:
      number of pings sent
    • last

      public long last()
      Returns:
      RTT of last ping
    • average

      public double average()
      Returns:
      average RTT
    • best

      public long best()
      Returns:
      best RTT
    • worst

      public long worst()
      Returns:
      worst RTT
    • stDev

      public double stDev()
      Returns:
      RTT standard deviation