/// <summary> Constructs a new trap pdu that is identical to the /// passed pdu. /// </summary> /// <param name="second">The object to copy. /// </param> public TrapPdu(TrapPdu second) : this() { _enterprise.Set(second._enterprise); _agentAddr.Set(second._agentAddr); _generic.Value = second.Generic; _specific.Value = second.Specific; _timeStamp.Value = second.TimeStamp; for (int x = 0; x < second.VbList.Count; x++) { VbList = (VbCollection)second.VbList.Clone(); } }
/// <summary>Constructs a new trap pdu that is identical to the passed pdu.</summary> /// <param name="second">The object to copy. /// </param> public TrapPdu(TrapPdu second) : this() { enterprise.Set(second.enterprise); agentAddr.Set(second.agentAddr); generic.Value = second.Generic; specific.Value = second.Specific; timeStamp.Value = second.TimeStamp; for (int x = 0; x < second.variables.Count; x++) { variables = (VbCollection)second.VbList.Clone(); } }
/// <summary> /// Constructor /// </summary> /// <param name="addr">Target address</param> public CTarget(IPAddress addr) : this() { _address.Set(addr); }