~/bend-docscommunity

src/net/addr.bend checks

raw source on the hub · import 0x44d563db508054425e12f3226cb92a4f/src/net/addr.bend as Addr

1 import
import Base

Definitions

def Addr.gateway source · line 9 · raw

U32

def Addr.dns source · line 12 · raw

U32

def Addr.loopback source · line 15 · raw

U32

def Addr.fallback_dns source · line 19 · raw

U32

1.1.1.1

def Addr.byte.go source · line 22 · raw

@m:Maybe<&2, U32> -> Maybe<&2, U32>

def Addr.byte source · line 30 · raw

@s:String -> Maybe<&2, U32>

A decimal byte, if s is one (at most 255).

def Addr.quad source · line 33 · raw

@a:Maybe<&2, U32> -> @b:Maybe<&2, U32> -> @c:Maybe<&2, U32> -> @d:Maybe<&2, U32> -> Maybe<&2, U32>

def Addr.parts source · line 40 · raw

@ps:List<&2, String> -> Maybe<&2, U32>

def Addr.parse source · line 48 · raw

@s:String -> Maybe<&2, U32>

A dotted quad.

def Addr.line source · line 51 · raw

@ws:List<&2, String> -> Maybe<&2, U32>

def Addr.first source · line 58 · raw

@ls:List<&2, String> -> U32

def Addr.nameserver source · line 66 · raw

@text:String -> U32

The first IPv4 nameserver of a resolv.conf.

def Addr.to_host source · line 70 · raw

@+ip:U32 -> @+dns:U32 -> U32

A guest-side destination as the host reaches it.

def Addr.to_guest source · line 74 · raw

@+ip:U32 -> @+dns:U32 -> U32

A host-side source as the guest sees it.

def Addr.reread source · line 80 · raw

@ip:U32 -> Bool

Whether a guest destination is the DNS server 10.0.2.3: the host's resolver is read again for it, so a host network change (a new Wi-Fi, a VPN, a reboot of the router) reaches a long-running guest.

def Addr.show source · line 84 · raw

@+ip:U32 -> String

a.b.c.d