点击或拖拽改变大小

NetworkDoubleBaseSocketKeepAliveTime 属性

获取或设置客户端的Socket的心跳时间信息,这个是Socket底层自动实现的心跳包,不基于协议层实现。默认小于0,不开启心跳检测,如果需要开启,设置 60_000 比较合适,单位毫秒
Get or set the heartbeat time information of the Socket of the client. This is the heartbeat packet automatically implemented by the bottom layer of the Socket, not based on the protocol layer. The default value is less than 0, and heartbeat detection is not enabled. If you need to enable it, it is more appropriate to set 60_000, in milliseconds.

命名空间:  HslCommunication.Core.Net
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.0.5.0 (11.0.5.0)
语法
public int SocketKeepAliveTime { get; set; }

属性值

类型:Int32
备注
经测试,在linux上,基于.net core3.1的程序运行时,设置了这个值是无效的。
参见