点击或拖拽改变大小

NetworkDoubleBaseTNetMessage, TTransformExtraOnDisconnect 方法

根据实际的协议选择是否重写本方法,有些协议在断开连接之前,需要发送一些报文来关闭当前的网络通道
Select whether to rewrite this method according to the actual protocol. Some protocols need to send some packets to close the current network channel before disconnecting.

命名空间:  HslCommunication.Core.Net
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:9.1.3.0 (9.1.3.0)
语法
protected virtual OperateResult ExtraOnDisconnect(
	Socket socket
)

参数

socket
类型:System.Net.SocketsSocket
网络套接字

返回值

类型:OperateResult
当断开连接时额外的操作结果
示例
目前暂无相关的示例,组件支持的协议都不用实现这个方法。
参见