Interface CTNetworkReceiver

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @ZenRegister public interface CTNetworkReceiver
A function that is fired when data is received from the network An example receiver that just prints the data received would look like this: (data, context) => println(data.getAsString());
DocParam:
this receiver
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    receive(IData data, CTNetworkContext context)
    Acts on the received data.
  • Method Details

    • receive

      void receive(IData data, CTNetworkContext context)
      Acts on the received data.
      Parameters:
      data - The data that was received.
      context - information related to the received data.