IPAddress

Overview

Type to hold ipv4 and ipv6 addresses.

Location

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

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

IPAddress()

 

init()

 

IPAddress()

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)

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)

Parameters:

  • anAddress:
  • aScopeId:

constructor (Int64)

Creates an address from an int64.

 

constructor(newAddress: Int64)

 

IPAddress(Int64 newAddress)

 

init(_ newAddress: Int64)

 

IPAddress(Int64 newAddress)

Parameters:

  • newAddress:

Address

Address value.

 

property Address: Int64 read write;

 

Int64 Address { get; set; }

 

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

 

Int64 Address { __get; __set; }

AddressFamily

Address family.

 

property AddressFamily: AddressFamily read write;

 

AddressFamily AddressFamily { get; set; }

 

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

 

AddressFamily AddressFamily { __get; __set; }

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

GetAddressBytes

Returns the address bytes.

 

method GetAddressBytes: array of Byte

 

Byte[] GetAddressBytes()

 

func GetAddressBytes() -> Byte...

 

Byte[] GetAddressBytes()

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()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

IPv4Length

Length of an ipv4 address.

 

const IPv4Length: Int32 = 4;

 

const Int32 IPv4Length = 4

 

static let IPv4Length: Int32 = 4

 

static final Int32 IPv4Length = 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

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)

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)

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; }

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

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)

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

IPv6Length

Length of an ipv6 address.

 

const IPv6Length: Int32 = 16;

 

const Int32 IPv6Length = 16

 

static let IPv6Length: Int32 = 16

 

static final Int32 IPv6Length = 16

 

Address

Address value.

 

property Address: Int64 read write;

 

Int64 Address { get; set; }

 

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

 

Int64 Address { __get; __set; }

AddressFamily

Address family.

 

property AddressFamily: AddressFamily read write;

 

AddressFamily AddressFamily { get; set; }

 

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

 

AddressFamily AddressFamily { __get; __set; }

ScopeId

Contains the ipv6 scope.

 

property ScopeId: Int64 read write;

 

Int64 ScopeId { get; set; }

 

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

 

Int64 ScopeId { __get; __set; }

 

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)

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)

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)

Parameters:

  • ipString:
  • address:

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

IPAddress()

 

init()

 

IPAddress()

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)

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)

Parameters:

  • anAddress:
  • aScopeId:

constructor (Int64)

Creates an address from an int64.

 

constructor(newAddress: Int64)

 

IPAddress(Int64 newAddress)

 

init(_ newAddress: Int64)

 

IPAddress(Int64 newAddress)

Parameters:

  • newAddress:

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

GetAddressBytes

Returns the address bytes.

 

method GetAddressBytes: array of Byte

 

Byte[] GetAddressBytes()

 

func GetAddressBytes() -> Byte...

 

Byte[] GetAddressBytes()

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()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()