NetPlainSocketConnectTimeOut 字段 |
获取或设置接收服务器反馈的时间,如果为负数,则不接收反馈
Gets or sets the time to receive server feedback, and if it is a negative number, does not receive feedback
命名空间:
HslCommunication.Enthernet
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.5.1.0 (12.5.1.0)
语法public int ConnectTimeOut
Public ConnectTimeOut As Integer
public:
int ConnectTimeOut
val mutable ConnectTimeOut: int
字段值
类型:
Int32
备注
超时的通常原因是服务器端没有配置好,导致访问失败,为了不卡死软件,所以有了这个超时的属性。
示例
设置1秒的接收超时的示例
client.ReceiveTimeOut = 1000;
OperateResult write = client.Write( "100", 123 );
参见