com.h3c.util.net

## Interface DatagramEngine.Listener

- All Known Implementing Classes:
    DefaultSnmpClient, SnmpReceiver
  Enclosing interface:
    DatagramEngine

      public static interface DatagramEngine.Listener

  Provides an interface for the notifications from the engine.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onReceive(byte[] payload, InetSocketAddress remoteAddress)` Called back when a new datagram arrives.

- - ### Method Detail

    - #### onReceive

          void onReceive(byte[] payload,
                       InetSocketAddress remoteAddress)

      Called back when a new datagram arrives.
      Parameters:
        `payload` - received datagram payload
        `remoteAddress` - remote socket address for received payload

Copyright © 2014. All Rights Reserved.