C# Class NetworkCommsDotNet.Tools.XPlatformHelper.IPv6Address

Encapsulates an IPv6 Address. See RFC 2373 for more info on IPv6 addresses.
ファイルを表示 Open project: MarcFletcher/NetworkComms.Net Class Usage Examples

Public Properties

Property Type Description
Loopback IPv6Address
Unspecified IPv6Address

Public Methods

Method Description
Equals ( object other ) : bool
GetHashCode ( ) : int
IPv6Address ( ushort addr ) : System
IPv6Address ( ushort addr, int prefixLength ) : System
IPv6Address ( ushort addr, int prefixLength, int scopeId ) : System
IsIPv4Compatible ( ) : bool
IsIPv4Mapped ( ) : bool
IsLoopback ( IPv6Address addr ) : bool
Parse ( string ipString ) : IPv6Address
ToString ( ) : string

Overrides System.Object.ToString to return this object rendered in a canonicalized notation

ToString ( bool fullLength ) : string
TryParse ( string ipString, IPv6Address &result ) : bool
this ( int index ) : ushort

Private Methods

Method Description
AsIPv4Int ( ) : int
Fill ( ushort addr, string ipString ) : int
Hash ( int i, int j, int k, int l ) : int
SwapUShort ( ushort number ) : ushort
TryParse ( string prefix, int &res ) : bool

Method Details

Equals() public method

public Equals ( object other ) : bool
other object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

IPv6Address() public method

public IPv6Address ( ushort addr ) : System
addr ushort
return System

IPv6Address() public method

public IPv6Address ( ushort addr, int prefixLength ) : System
addr ushort
prefixLength int
return System

IPv6Address() public method

public IPv6Address ( ushort addr, int prefixLength, int scopeId ) : System
addr ushort
prefixLength int
scopeId int
return System

IsIPv4Compatible() public method

public IsIPv4Compatible ( ) : bool
return bool

IsIPv4Mapped() public method

public IsIPv4Mapped ( ) : bool
return bool

IsLoopback() public static method

public static IsLoopback ( IPv6Address addr ) : bool
addr IPv6Address
return bool

Parse() public static method

public static Parse ( string ipString ) : IPv6Address
ipString string
return IPv6Address

ToString() public method

Overrides System.Object.ToString to return this object rendered in a canonicalized notation
public ToString ( ) : string
return string

ToString() public method

public ToString ( bool fullLength ) : string
fullLength bool
return string

TryParse() public static method

public static TryParse ( string ipString, IPv6Address &result ) : bool
ipString string
result IPv6Address
return bool

this() public method

public this ( int index ) : ushort
index int
return ushort

Property Details

Loopback public_oe static_oe property

public static IPv6Address Loopback
return IPv6Address

Unspecified public_oe static_oe property

public static IPv6Address Unspecified
return IPv6Address