mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-22 12:09:34 +08:00

* 重做 WebSocket 监听;为服务器统一了多种数据连接访问时的处理;统一编码为 UTF-8 * ModelManager已更名并移动到工具命名空间中 * 完成 WebSocket 消息处理系统 * 添加Socket异步接收数据流;修复TaskUtility阻塞的问题;优化心跳、房间、模组 * 添加枚举 * 删除多余字符 * 添加监听器的名称 * 修改了命名
21 lines
694 B
C#
21 lines
694 B
C#
using Milimoe.FunGame.Core.Library.Common.Network;
|
|
using Milimoe.FunGame.Core.Library.Constant;
|
|
|
|
namespace Milimoe.FunGame.Core.Interface.Base
|
|
{
|
|
public interface ISocketMessageProcessor
|
|
{
|
|
public Type InstanceType { get; }
|
|
public Guid Token { get; }
|
|
public string ClientIP { get; }
|
|
public string ClientName { get; }
|
|
|
|
public SocketObject[] Receive();
|
|
public Task<SocketObject[]> ReceiveAsync();
|
|
public SocketResult Send(SocketMessageType type, params object[] objs);
|
|
public Task<SocketResult> SendAsync(SocketMessageType type, params object[] objs);
|
|
public void Close();
|
|
public Task CloseAsync();
|
|
}
|
|
}
|