通讯逻辑修改
This commit is contained in:
commit
e4e7853624
3 files changed
+12
-10
No files matched your search
@@ -10,6 +10,7 @@ using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
@@ -53,6 +54,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.UserClass
|
||||
drEmployee["State"] = "801";
|
||||
drEmployee.EndEdit();
|
||||
drEmployee.AcceptChanges();
|
||||
|
||||
LogGing.LogGingDATA("[IP='" + client.IP + "' AND port='" + client.Port + "']=Link_OK");
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -385,15 +387,8 @@ namespace SunlightCentralizedControlManagement_SCCM_.UserClass
|
||||
.SetMinBufferSize(1024*64)
|
||||
.SetRemoteIPHost(ip + ":" + port)
|
||||
.ConfigurePlugins(a =>
|
||||
{
|
||||
a.UseCheckClear()
|
||||
.SetCheckClearType(CheckClearType.All)
|
||||
.SetTick(TimeSpan.FromSeconds(5))
|
||||
.SetOnClose((c, t) =>
|
||||
{
|
||||
c.TryShutdown();
|
||||
});
|
||||
// a.UseTcpReconnection();//触发型重连
|
||||
{
|
||||
// a.UseTcpReconnection();//触发型重连
|
||||
})
|
||||
.ConfigureContainer(a =>
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user