|
|
@@ -157,7 +157,7 @@ namespace YSAI.Core.communication.net.tcp.service
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- OnEventHandler(this, new EventResult(false, $"[{IpPort}]发来的数据长度错误(小于等于零),已强制关闭连接", new TcpServiceData.ClientMessage { Step = TcpServiceData.Steps.客户端断开, IpPort = IpPort }, @enum.ResultType.All));
|
|
|
+ OnEventHandler(this, new EventResult(false, $"[{IpPort}]发来的数据长度错误(小于等于零),已强制关闭连接", new TcpServiceData.ClientMessage { Step = TcpServiceData.Steps.客户端断开, IpPort = IpPort }, @enum.ResultType.Object));
|
|
|
//移除此客户端
|
|
|
RemoveAsync(IpPort);
|
|
|
return;
|
|
|
@@ -165,7 +165,7 @@ namespace YSAI.Core.communication.net.tcp.service
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- OnEventHandler(this, new EventResult(false, $"监控[{IpPort}]消息异常:{ex.Message}", new TcpServiceData.ClientMessage { Step = TcpServiceData.Steps.客户端断开, IpPort = IpPort }, @enum.ResultType.All));
|
|
|
+ OnEventHandler(this, new EventResult(false, $"监控[{IpPort}]消息异常:{ex.Message}", new TcpServiceData.ClientMessage { Step = TcpServiceData.Steps.客户端断开, IpPort = IpPort }, @enum.ResultType.Object));
|
|
|
//移除此客户端
|
|
|
RemoveAsync(IpPort);
|
|
|
return;
|
|
|
@@ -200,7 +200,7 @@ namespace YSAI.Core.communication.net.tcp.service
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- return Break("On", false, ex.Message, Exc: ex);
|
|
|
+ return Break("On", false, ex.Message, Exception: ex);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -251,7 +251,7 @@ namespace YSAI.Core.communication.net.tcp.service
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- return Break("Off", false, ex.Message, Exc: ex);
|
|
|
+ return Break("Off", false, ex.Message, Exception: ex);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -283,7 +283,7 @@ namespace YSAI.Core.communication.net.tcp.service
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- return Break("Remove", false, ex.Message, Exc: ex);
|
|
|
+ return Break("Remove", false, ex.Message, Exception: ex);
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
@@ -325,7 +325,7 @@ namespace YSAI.Core.communication.net.tcp.service
|
|
|
|
|
|
if (Message.Count > 0)
|
|
|
{
|
|
|
- return Break("Send", false, "存在失败数据", Message, @enum.ResultType.All);
|
|
|
+ return Break("Send", false, "存在失败数据", Message, @enum.ResultType.Object);
|
|
|
}
|
|
|
}
|
|
|
else
|
|
|
@@ -335,12 +335,12 @@ namespace YSAI.Core.communication.net.tcp.service
|
|
|
{
|
|
|
if (ClientIoc[IpPort].SocketObj.Send(Data) <= 0)
|
|
|
{
|
|
|
- return Break("Send", false, $"数据发送[{IpPort}]失败", Message, @enum.ResultType.All);
|
|
|
+ return Break("Send", false, $"数据发送[{IpPort}]失败", Message, @enum.ResultType.Object);
|
|
|
}
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- return Break("Send", false, $"数据发送失败,[{IpPort}]不存在", Message, @enum.ResultType.All);
|
|
|
+ return Break("Send", false, $"数据发送失败,[{IpPort}]不存在", Message, @enum.ResultType.Object);
|
|
|
}
|
|
|
}
|
|
|
return Break("Send", true);
|
|
|
@@ -352,7 +352,7 @@ namespace YSAI.Core.communication.net.tcp.service
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- return Break("Send", false, ex.Message, Exc: ex);
|
|
|
+ return Break("Send", false, ex.Message, Exception: ex);
|
|
|
}
|
|
|
}
|
|
|
|