IPAddress

Overview

Type to hold ipv4 and ipv6 addresses.

Location

  • Reference: Island.fx
  • Namespace: RemObjects.Elements.System
  • Platforms: Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, visionOS, visionOS Simulator, watchOS, watchOS Simulator, Windows

 

constructor    (declared in Object)

 

constructor

 

IPAddress()

 

init()

 

IPAddress()

 

Sub New()

constructor (array of Byte)

Creates an address from a byte array.

 

constructor(anAddress: array of Byte)

 

IPAddress(Byte[] anAddress)

 

init(_ anAddress: Byte...)

 

IPAddress(Byte[] anAddress)

 

Sub New(anAddress As Byte())

Parameters:

  • anAddress:

constructor (array of Byte, Int64)

Creates an address from a byte array.

 

constructor(anAddress: array of Byte; aScopeId: Int64)

 

IPAddress(Byte[] anAddress, Int64 aScopeId)

 

init(_ anAddress: Byte..., _ aScopeId: Int64)

 

IPAddress(Byte[] anAddress, Int64 aScopeId)

 

Sub New(anAddress As Byte(), aScopeId As Int64)

Parameters:

  • anAddress:
  • aScopeId:

constructor (Int64)

Creates an address from an int64.

 

constructor(newAddress: Int64)

 

IPAddress(Int64 newAddress)

 

init(_ newAddress: Int64)

 

IPAddress(Int64 newAddress)

 

Sub New(newAddress As Int64)

Parameters:

  • newAddress:

Address

Address value.

 

property Address: Int64 read write;

 

Int64 Address { get; set; }

 

var Address: Int64 { get{} set{} }

 

Int64 Address { __get; __set; }

 

Property Address() As Int64

AddressFamily

Address family.

 

property AddressFamily: AddressFamily read write;

 

AddressFamily AddressFamily { get; set; }

 

var AddressFamily: AddressFamily { get{} set{} }

 

AddressFamily AddressFamily { __get; __set; }

 

Property AddressFamily() As AddressFamily

Equals  virtual    (declared in Object)

Default constructor.

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetAddressBytes

Returns the address bytes.

 

method GetAddressBytes: array of Byte

 

Byte[] GetAddressBytes()

 

func GetAddressBytes() -> Byte...

 

Byte[] GetAddressBytes()

 

Function GetAddressBytes() As Byte()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

IPv4Length

Length of an ipv4 address.

 

const IPv4Length: Int32 = 4;

 

const Int32 IPv4Length = 4

 

static let IPv4Length: Int32 = 4

 

static final Int32 IPv4Length = 4

 

Dim IPv4Length As Int32 = 4

IPv6Length

Length of an ipv6 address.

 

const IPv6Length: Int32 = 16;

 

const Int32 IPv6Length = 16

 

static let IPv6Length: Int32 = 16

 

static final Int32 IPv6Length = 16

 

Dim IPv6Length As Int32 = 16

Parse

Parses an address to an IPAddress.

 

class method Parse(ipString: String): IPAddress

 

static IPAddress Parse(String ipString)

 

static func Parse(_ ipString: String) -> IPAddress

 

static IPAddress Parse(String ipString)

 

Shared Function Parse(ipString As String) As IPAddress

Parameters:

  • ipString:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

ScopeId

Contains the ipv6 scope.

 

property ScopeId: Int64 read write;

 

Int64 ScopeId { get; set; }

 

var ScopeId: Int64 { get{} set{} }

 

Int64 ScopeId { __get; __set; }

 

Property ScopeId() As Int64

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

TryParse

Parses an address to an IPAddress. Returns true on success.

 

class method TryParse(ipString: String; out address: IPAddress): Boolean

 

static Boolean TryParse(String ipString, out IPAddress address)

 

static func TryParse(_ ipString: String, _ address: IPAddress) -> Boolean

 

static Boolean TryParse(String ipString, __out IPAddress address)

 

Shared Function TryParse(ipString As String, <OutAttribute> ByRef address As IPAddress) As Boolean

Parameters:

  • ipString:
  • address:

 

IPv4Length

Length of an ipv4 address.

 

const IPv4Length: Int32 = 4;

 

const Int32 IPv4Length = 4

 

static let IPv4Length: Int32 = 4

 

static final Int32 IPv4Length = 4

 

Dim IPv4Length As Int32 = 4

IPv6Length

Length of an ipv6 address.

 

const IPv6Length: Int32 = 16;

 

const Int32 IPv6Length = 16

 

static let IPv6Length: Int32 = 16

 

static final Int32 IPv6Length = 16

 

Dim IPv6Length As Int32 = 16

 

Address

Address value.

 

property Address: Int64 read write;

 

Int64 Address { get; set; }

 

var Address: Int64 { get{} set{} }

 

Int64 Address { __get; __set; }

 

Property Address() As Int64

AddressFamily

Address family.

 

property AddressFamily: AddressFamily read write;

 

AddressFamily AddressFamily { get; set; }

 

var AddressFamily: AddressFamily { get{} set{} }

 

AddressFamily AddressFamily { __get; __set; }

 

Property AddressFamily() As AddressFamily

ScopeId

Contains the ipv6 scope.

 

property ScopeId: Int64 read write;

 

Int64 ScopeId { get; set; }

 

var ScopeId: Int64 { get{} set{} }

 

Int64 ScopeId { __get; __set; }

 

Property ScopeId() As Int64

 

Parse

Parses an address to an IPAddress.

 

class method Parse(ipString: String): IPAddress

 

static IPAddress Parse(String ipString)

 

static func Parse(_ ipString: String) -> IPAddress

 

static IPAddress Parse(String ipString)

 

Shared Function Parse(ipString As String) As IPAddress

Parameters:

  • ipString:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

TryParse

Parses an address to an IPAddress. Returns true on success.

 

class method TryParse(ipString: String; out address: IPAddress): Boolean

 

static Boolean TryParse(String ipString, out IPAddress address)

 

static func TryParse(_ ipString: String, _ address: IPAddress) -> Boolean

 

static Boolean TryParse(String ipString, __out IPAddress address)

 

Shared Function TryParse(ipString As String, <OutAttribute> ByRef address As IPAddress) As Boolean

Parameters:

  • ipString:
  • address:

 

constructor    (declared in Object)

 

constructor

 

IPAddress()

 

init()

 

IPAddress()

 

Sub New()

constructor (array of Byte)

Creates an address from a byte array.

 

constructor(anAddress: array of Byte)

 

IPAddress(Byte[] anAddress)

 

init(_ anAddress: Byte...)

 

IPAddress(Byte[] anAddress)

 

Sub New(anAddress As Byte())

Parameters:

  • anAddress:

constructor (array of Byte, Int64)

Creates an address from a byte array.

 

constructor(anAddress: array of Byte; aScopeId: Int64)

 

IPAddress(Byte[] anAddress, Int64 aScopeId)

 

init(_ anAddress: Byte..., _ aScopeId: Int64)

 

IPAddress(Byte[] anAddress, Int64 aScopeId)

 

Sub New(anAddress As Byte(), aScopeId As Int64)

Parameters:

  • anAddress:
  • aScopeId:

constructor (Int64)

Creates an address from an int64.

 

constructor(newAddress: Int64)

 

IPAddress(Int64 newAddress)

 

init(_ newAddress: Int64)

 

IPAddress(Int64 newAddress)

 

Sub New(newAddress As Int64)

Parameters:

  • newAddress:

Equals  virtual    (declared in Object)

Default constructor.

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetAddressBytes

Returns the address bytes.

 

method GetAddressBytes: array of Byte

 

Byte[] GetAddressBytes()

 

func GetAddressBytes() -> Byte...

 

Byte[] GetAddressBytes()

 

Function GetAddressBytes() As Byte()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String