EMILUA(3em)

πŸ“¦ version 0.12.1, in nixos 26.05, nixpkgs unstable

✨ 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