Interface INetworkChannelHandler
-
public interface INetworkChannelHandlerA networkChannelHandler provides the operation with the INetworkChannel- See Also:
INetworkChannel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleChannelClose(INetworkChannel channel)Handles the close phase from a NetworkChannelvoidhandleChannelInitialize(INetworkChannel channel)Handles an new open connected channelbooleanhandlePacketReceive(INetworkChannel channel, Packet packet)Handles a incoming packet from a provided channel, that contains that channel handler
-
-
-
Method Detail
-
handleChannelInitialize
void handleChannelInitialize(INetworkChannel channel) throws java.lang.Exception
Handles an new open connected channel- Parameters:
channel- the providing channel on that this handler is sets on this- Throws:
java.lang.Exception
-
handlePacketReceive
boolean handlePacketReceive(INetworkChannel channel, Packet packet) throws java.lang.Exception
Handles a incoming packet from a provided channel, that contains that channel handler- Parameters:
channel- the providing channel on that this handler is sets on thispacket- the packet, that will received from the remote component- Returns:
- should return true that, the packet that was received is allowed to handle from the packet listeners at the packetListenerRegistry
- Throws:
java.lang.Exception
-
handleChannelClose
void handleChannelClose(INetworkChannel channel) throws java.lang.Exception
Handles the close phase from a NetworkChannel- Parameters:
channel- the providing channel on that this handler is sets on this- Throws:
java.lang.Exception
-
-