コード例 #1
0
ファイル: CommUdpLogic.cs プロジェクト: zuoyangithub/scada
 /// <summary>
 /// Установить параметры канала связи в соответствии с настройками
 /// </summary>
 public void SetCommCnlParams(SortedList <string, string> commCnlParams)
 {
     commCnlParams["LocalUdpPort"]    = LocalUdpPort.ToString();
     commCnlParams["RemoteUdpPort"]   = RemoteUdpPort.ToString();
     commCnlParams["RemoteIpAddress"] = RemoteIpAddress;
     commCnlParams["Behavior"]        = Behavior.ToString();
     commCnlParams["DevSelMode"]      = DevSelMode.ToString();
 }
コード例 #2
0
 /// <summary>
 /// Adds the options to the list.
 /// </summary>
 public void AddToOptionList(OptionList options)
 {
     options.Clear();
     options["LocalUdpPort"]    = LocalUdpPort.ToString();
     options["RemoteUdpPort"]   = RemoteUdpPort.ToString();
     options["RemoteIpAddress"] = RemoteIpAddress;
     options["Behavior"]        = Behavior.ToString();
     options["DeviceMapping"]   = DeviceMapping.ToString();
 }