NetAddress

Represents an IPv4 or IPv6 address. The family field indicates the address type. The addr field is either the IPv4 address or the IPv6 flow info. The addr1-4 fields are the IPv6 address, or invalid for an IPv4 address. The scope field is the IPv6 scope, or invalid for an IPv4 address.

class val NetAddress is
  Equatable[NetAddress val] ref

Implements


Constructors

create

new iso create()
: NetAddress iso^

Returns


Public fields

  • let length: U8 val

  • let family: U8 val

  • let port: U16 val

  • let addr: U32 val

  • let addr1: U32 val

  • let addr2: U32 val

  • let addr3: U32 val

  • let addr4: U32 val

  • let scope: U32 val

Public Functions

ip4

Returns true for an IPv4 address.

fun box ip4()
: Bool val

Returns


ip6

Returns true for an IPv6 address.

fun box ip6()
: Bool val

Returns


name

Return the host and service name.

fun box name(
  reversedns: (AmbientAuth val | NetAuth val | DNSAuth val | 
    None val) = seq,
  servicename: Bool val = seq)
: (String val , String val) ?

Parameters

Returns


eq

fun box eq(
  that: NetAddress box)
: Bool val

Parameters

Returns


host_eq

fun box host_eq(
  that: NetAddress box)
: Bool val

Parameters

Returns


ne

fun box ne(
  that: NetAddress val)
: Bool val

Parameters

Returns