mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-21 19:49:34 +08:00
更新GetSocketTypeString方法
This commit is contained in:
parent
3bf075a15d
commit
909f078666
@ -89,5 +89,10 @@ namespace Milimoe.FunGame.Core.Library.Common.Network
|
||||
{
|
||||
throw new System.Exception("监听Socket不能用于接收信息。");
|
||||
}
|
||||
|
||||
public static string GetTypeString(SocketMessageType type)
|
||||
{
|
||||
return Socket.GetTypeString(type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -147,5 +147,10 @@ namespace Milimoe.FunGame.Core.Library.Common.Network
|
||||
if (HeartBeatFaileds++ >= 3)
|
||||
throw new System.Exception("ERROR:与服务器连接中断。");
|
||||
}
|
||||
|
||||
public static string GetTypeString(SocketMessageType type)
|
||||
{
|
||||
return SocketManager.GetTypeString(type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -211,7 +211,7 @@ namespace Milimoe.FunGame.Core.Service
|
||||
/// </summary>
|
||||
/// <param name="type">通信类型</param>
|
||||
/// <returns>等效字符串</returns>
|
||||
private static string GetTypeString(SocketMessageType type)
|
||||
internal static string GetTypeString(SocketMessageType type)
|
||||
{
|
||||
return type switch
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user