Organize & sort the KCP system

This commit is contained in:
KingRainbow44
2023-09-09 15:13:43 -04:00
Unverified
parent 8db1f597ce
commit 5b5ec9b6b4
7 changed files with 199 additions and 147 deletions
@@ -0,0 +1,22 @@
package emu.grasscutter.net;
public interface KcpChannel {
/**
* Event fired when the client connects.
*
* @param tunnel The tunnel.
*/
void onConnected(KcpTunnel tunnel);
/**
* Event fired when the client disconnects.
*/
void onDisconnected();
/**
* Event fired when data is received from the client.
*
* @param bytes The data received.
*/
void onMessage(byte[] bytes);
}