EMILUA(3em)
β¨ NAME β¨
okay so bestie, welcome to EMILUA(3em) β the Emilua reference manual page, and yes 3em is the manual section π
β this is all about Emilua, the Lua execution engine π«Ά.
π DESCRIPTION π
Itβs a variant type for representing IPv4 and IPv6 addresses π. Some features are only available for one version of the protocol, and if you try to use them against an IP address of a different version, an error will be raised π. Periodt.
π¦ FUNCTIONS π¦
new() β ip.addressβ constructor time, bestie β¨
new() (1)
new(str) (2)
(1) Default constructor. (2) Create an IPv4 address in dotted decimal form, or from an IPv6 address in hexadecimal notation.
any_v4() β ip.addressβ create an address object that represents any (v4) address π§any_v6() β ip.addressβ create an address object that represents any (v6) address π§loopback_v4() β ip.addressβ create an address object that represents the loopback (v4) address πloopback_v6() β ip.addressβ create an address object that represents the loopback (v6) address πbroadcast_v4() β ip.addressβ create an address object that represents the broadcast (v4) address π£
π FUNCTIONS (V4) π
to_v6(self) β ip.addressβ create an IPv4-mapped IPv6 address π«
π FUNCTIONS (V6) π
to_v4(self) β ip.addressβ create an IPv4 address from a IPv4-mapped IPv6 address π«
π PROPERTIES π
is_loopback:booleanβ whether the address is a loopback address πis_multicast:booleanβ whether the address is a multicast address π‘is_unspecified:booleanβ whether the address is unspecified π«₯is_v4:booleanβ whether the address is an IP version 4 address 4οΈβ£is_v6:booleanβ whether the address is an IP version 6 address 6οΈβ£
π PROPERTIES (V6) π
β οΈ btw, an error will be raised if you try to use these against a v4 object π«
is_link_local:booleanβ whether the address is link local πis_multicast_global:booleanβ whether the address is a global multicast address πis_multicast_link_local:booleanβ whether the address is a link-local multicast address πis_multicast_node_local:booleanβ whether the address is a node-local multicast address π₯οΈis_multicast_org_local:booleanβ whether the address is a org-local multicast address π’is_multicast_site_local:booleanβ whether the address is a site-local multicast address πis_site_local:booleanβ whether the address is site local π‘is_v4_mapped:booleanβ whether the address is a mapped IPv4 address πΊοΈscope_id:integerβ the scope ID of the address. Read-write property βοΈ
π METAMETHODS π
__tostring()π¬__eq()π°__lt()β¬ οΈ__le()β¬ οΈ=
kisses, bestie π β this was Emilua 0.12.1-nixpkgs1, dated 1980-01-01, from the EMILUA(3em) manual. bye π«ΆπΈ
π¦ where this page comes from
- nixos 26.05: emilua 0.12.1
- nixpkgs unstable: emilua 0.12.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms