Files
Grasscutter/src/main/java/emu/grasscutter/net/KcpChannel.java
T
2023-09-09 15:13:43 -04:00

23 lines
450 B
Java

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);
}