상속: TerminalParameter, ITCPParameter
 public void Deserialize(TCPParameter tp, StructuredText node)
 {
     base.Deserialize(tp, node);
     tp.Destination = node.Get("destination", "");
     Debug.Assert(tp.Destination != null);
     tp.Port = ParseUtil.ParseInt(node.Get("port"), _defaultPort);
 }
 public void Serialize(TCPParameter tp, StructuredText node)
 {
     base.Serialize(tp, node);
     node.Set("destination", tp.Destination);
     if (tp.Port != _defaultPort)
         node.Set("port", tp.Port.ToString());
 }
 public void Serialize(TCPParameter tp, StructuredText node)
 {
     base.Serialize(tp, node);
     node.Set("destination", tp.Destination);
     if (tp.Port != _defaultPort)
         node.Set("port", tp.Port.ToString());
 }
 public void Deserialize(TCPParameter tp, StructuredText node)
 {
     base.Deserialize(tp, node);
     tp.Destination = node.Get("destination", "");
     Debug.Assert(tp.Destination != null);
     tp.Port = ParseUtil.ParseInt(node.Get("port"), _defaultPort);
 }
예제 #5
0
 public TCPParameter(TCPParameter src)
     : base(src) {
     _destination = src._destination;
     _port = src._port;
 }
예제 #6
0
 public TCPParameter(TCPParameter src)
     : base(src)
 {
     _destination = src._destination;
     _port        = src._port;
 }