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 TCPParameter(TCPParameter src) : base(src) { _destination = src._destination; _port = src._port; }