Package network

Interface IMessageConsumer<T>

Type Parameters:
T - The type of message to be consumed

public interface IMessageConsumer<T>
Interface that allows the receiving of a message T from the network layer.
Author:
pfouto
  • Method Summary

    Modifier and Type Method Description
    void deliverMessage​(short msgCode, T msg, Host from)
    Method that is called to deliver a message from the network layer to the application
  • Method Details

    • deliverMessage

      void deliverMessage​(short msgCode, T msg, Host from)
      Method that is called to deliver a message from the network layer to the application
      Parameters:
      msgCode - The code of the received message
      msg - The received message
      from - The sender of the message