示例#1
0
文件: NetSDK.cs 项目: golfpunx/CIT
 /// <summary>
 /// Set the network parameters
 /// </summary>
 /// <param name="lLoginID">Equipment user loginID:CLIENT_Loginreturn value</param>
 /// <param name="netConfig">network parameter</param>
 /// <param name="waittime">waittime</param>
 /// <returns>true:succeed;false:fail</returns>
 public static bool NETSetDevConfig(int lLoginID, NETDEV_NET_CFG netConfig, int waittime)
 {
     bool returnValue = false;
     returnValue = PSetDevConfig(lLoginID, 0, CONFIG_COMMAND.NET_DEV_NETCFG, (object)netConfig, typeof(NETDEV_NET_CFG), waittime);
     return returnValue;
 }
示例#2
0
文件: NetSDK.cs 项目: golfpunx/CIT
 /// <summary>
 /// Set the network parameters [the default wait time 3000]
 /// </summary>
 /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param>
 /// <param name="netConfig">network parameter</param>
 /// <returns>true:succeed;false:fail</returns>
 public static bool NETSetDevConfig(int lLoginID, NETDEV_NET_CFG netConfig)
 {
     return NETSetDevConfig(lLoginID, netConfig, 3000);
 }
示例#3
0
文件: NetSDK.cs 项目: golfpunx/CIT
 /// <summary>
 ///  Access to network parameters
 /// </summary>
 /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values	</param>
 /// <param name="netConfig">etwork parameter</param>
 /// <param name="waittime">waittime</param>
 /// <returns>true:succeed;false:fail</returns>
 public static bool NETGetDevConfig(int lLoginID, ref NETDEV_NET_CFG netConfig, int waittime)
 {
     object result = new object();
     bool returnValue = false;
     returnValue = PGetDevConfig(lLoginID, 0, CONFIG_COMMAND.NET_DEV_NETCFG, ref result, typeof(NETDEV_NET_CFG), waittime);
     netConfig = (NETDEV_NET_CFG)result;
     return returnValue;
 }