Set() public method

Set class value from the IPAddress argument
public Set ( IPAddress ipaddr ) : void
ipaddr System.Net.IPAddress Type: class instance
return void
Esempio n. 1
0
        /// <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();
            }
        }
Esempio n. 2
0
        /// <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();
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="addr">Target address</param>
 public CTarget(IPAddress addr)
     : this()
 {
     _address.Set(addr);
 }