HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

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.

Synopsis
  • 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).

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.