// /** // * File: IPAddress.cs // * Author: haraldwolff // * // * This file and it's content is copyrighted by the Author and / or copyright holder. // * Any use wihtout proper permission is illegal and may lead to legal actions. // * // * // **/ using System; using System.Net; namespace ln.snmp.types { public class IPAddr : Variable { public System.Net.IPAddress IP { get; set; } public IPAddr() :base(new Identifier(IdentifierClass.APPLICATION,false,0x00)) { IP = new IPAddress(0); } public override byte[] Bytes { get => IP.GetAddressBytes(); set => IP = new System.Net.IPAddress(value); } public override object Value { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } } }