SystemIPv6InterfaceProperties.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / NetworkInformation / SystemIPv6InterfaceProperties.cs / 1 / SystemIPv6InterfaceProperties.cs

                             
    /// 
    ///    Provides support for ip configuation information and statistics.
    ///
    /// 
namespace System.Net.NetworkInformation {
 
    using System.Net; 
    using System.Net.Sockets;
    using System; 
    using System.Runtime.InteropServices;
    using System.Collections;
    using System.ComponentModel;
    using System.Security.Permissions; 
    using Microsoft.Win32;
 
 

 
    internal class SystemIPv6InterfaceProperties:IPv6InterfaceProperties{


        uint index = 0; 
        uint mtu = 0;
 
        internal SystemIPv6InterfaceProperties(uint index, uint mtu) 
        {
           this.index = index; 
           this.mtu = mtu;
        }
        /// Specifies the Maximum transmission unit in bytes. Uses GetIFEntry.
        //We cache this to be consistent across all platforms 
        public override int Index{
            get { 
                return (int)index; 
            }
        } 
        /// Specifies the Maximum transmission unit in bytes. Uses GetIFEntry.
        //We cache this to be consistent across all platforms
        public override int Mtu{
            get { 
                return (int) mtu;
            } 
        } 
    }
} 


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK