Class UdpErrorAlert

All Implemented Interfaces:
Alert<udp_error_alert>

public final class UdpErrorAlert extends AbstractAlert<udp_error_alert>
This alert is posted when there is an error on the UDP socket. The UDP socket is used for all uTP, DHT and UDP tracker traffic. It's global to the session.
  • Method Details

    • endpoint

      public UdpEndpoint endpoint()
      The source address associated with the error (if any).
      Returns:
      the endpoint
    • operation

      public Operation operation()
      The operation that failed.
      Returns:
      the operation
    • error

      public ErrorCode error()
      The error code describing the error.
      Returns:
      the error