/* * Copyright 2026 Flix Authors * * Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE.md file. */////// Type of IPv6 socket addresses, and its functions.///pubmod Net.SocketAddrV6 {use Net.Ipv6Addr////// Type of IPv6 socket addresses.///pubenumSocketAddrV6withEq {case SocketAddrV6(Ipv6Addr, Int32) }instanceToString[SocketAddrV6] {pubdeftoString(x: SocketAddrV6): String =let SocketAddrV6.SocketAddrV6(ip, port) = x;"[${ip}]:${port}" }instanceFormattable[SocketAddrV6] {pubdefformat(x: SocketAddrV6): RichString = RichString.fromString(ToString.toString(x)) }}