NetworkDoubleBaseGetAvailableSocket 方法 |
获取本次操作的可用的网络通道,如果是短连接,就重新生成一个新的网络通道,如果是长连接,就复用当前的网络通道。
Obtain the available network channels for this operation. If it is a short connection, a new network channel is regenerated.
If it is a long connection, the current network channel is reused.
命名空间:
HslCommunication.Core.Net
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 protected OperateResult<Socket> GetAvailableSocket()
Protected Function GetAvailableSocket As OperateResult(Of Socket)
protected:
OperateResult<Socket^>^ GetAvailableSocket()
member GetAvailableSocket : unit -> OperateResult<Socket>
返回值
类型:
OperateResultSocket是否成功,如果成功,使用这个套接字
参见