HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulevortex-ws-0.2.1GHC2024

Vortex.Ws.Door.Peer

Who a connection is charged to. An IPv4 address is one peer; an IPv6 address is charged to its /64, the smallest block one subscriber is usually handed, so a visitor cannot take every session slot by walking the addresses of their own network.

  • 1 type
  • 4 values
  • Packagevortex-ws-0.2.1
  • Exports5
  • LanguageGHC2024
  • LicenceBSD-3-Clause
  • SourcePeer.hs
valuepeerOfText :: String -> Peer
#

The peer a textual address is charged to: an IPv6 address's /64, anything else as written (at most 64 characters).

valueipv6Groups :: String -> Maybe [Word16]
#

The eight groups of an IPv6 address in its textual forms, with :: standing for a run of zero groups; Nothing for anything that is not one. An IPv4-mapped address (::ffff:1.2.3.4) is not IPv6 here.