Ejemplo n.º 1
0
 /// <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();
 }
Ejemplo n.º 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();
 }