SystemIPv6InterfaceProperties.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / SystemIPv6InterfaceProperties.cs / 1305376 / 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;
            } 
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

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