🚧 pass-through raw data, refactoring
This commit is contained in:
@@ -21,4 +21,5 @@ namespace Ragon.Server.IO;
|
||||
public interface INetworkChannel
|
||||
{
|
||||
void Send(byte[] data);
|
||||
void Send(RagonBuffer buffer);
|
||||
}
|
||||
@@ -21,5 +21,5 @@ public interface INetworkListener
|
||||
void OnConnected(INetworkConnection connection);
|
||||
void OnDisconnected(INetworkConnection connection);
|
||||
void OnTimeout(INetworkConnection connection);
|
||||
void OnData(INetworkConnection connection, byte[] data);
|
||||
void OnData(INetworkConnection connection, NetworkChannel channel, byte[] data);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Ragon.Server.IO;
|
||||
|
||||
public enum NetworkChannel
|
||||
{
|
||||
RELIABLE = 1,
|
||||
UNRELIABLE = 2,
|
||||
RAW = 3,
|
||||
}
|
||||
Reference in New Issue
Block a user