Interface RtReceiver

All Known Implementing Classes:
RoundTrip

public interface RtReceiver
Receives messages from a RtTransport via a callback. Needs to be registered with RtTransport
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    receive(Object sender, byte[] buf, int offset, int length)
    Called when a message is received.
  • Method Details

    • receive

      void receive(Object sender, byte[] buf, int offset, int length)
      Called when a message is received. Note that this method may be called by multiple threads concurrently
      Parameters:
      sender - The address of the sender
      buf - The buffer
      offset - The offset of the data in the buffer
      length - The length (bytes) of the data