2016-01-12 update 3

This commit is contained in:
parallelbgls@outlook.com
2016-01-12 17:18:12 +08:00
parent 4073878581
commit af45ef5231
3 changed files with 14 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// 此代码由工具生成。 // 此代码由工具生成。
// 运行时版本:4.0.30319.34014 // 运行时版本:4.0.30319.42000
// //
// 对此文件的更改可能会导致不正确的行为,并且如果 // 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。 // 重新生成代码,这些更改将会丢失。
@@ -78,6 +78,15 @@ namespace ModBus.Net {
} }
} }
/// <summary>
/// 查找类似 5000 的本地化字符串。
/// </summary>
internal static string IPConnectionTimeout {
get {
return ResourceManager.GetString("IPConnectionTimeout", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 502 的本地化字符串。 /// 查找类似 502 的本地化字符串。
/// </summary> /// </summary>

View File

@@ -123,6 +123,9 @@
<data name="IP" xml:space="preserve"> <data name="IP" xml:space="preserve">
<value>192.168.3.247</value> <value>192.168.3.247</value>
</data> </data>
<data name="IPConnectionTimeout" xml:space="preserve">
<value>5000</value>
</data>
<data name="Port" xml:space="preserve"> <data name="Port" xml:space="preserve">
<value>502</value> <value>502</value>
</data> </data>

View File

@@ -15,7 +15,7 @@ namespace ModBus.Net
protected TcpProtocalLinker(string ip, int port) protected TcpProtocalLinker(string ip, int port)
{ {
_baseConnector = new TcpConnector(ip, port, 2000); _baseConnector = new TcpConnector(ip, port, int.Parse(ConfigurationManager.IPConnectionTimeout));
} }
} }
} }