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 voiddeliverMessage(short msgCode, T msg, Host from)Method that is called to deliver a message from the network layer to the application
-
Method Details
-
deliverMessage
Method that is called to deliver a message from the network layer to the application- Parameters:
msgCode- The code of the received messagemsg- The received messagefrom- The sender of the message
-