/* * 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. */pubmod Net.SocketAddrV4 {use Net.Ipv4Addr////// Represents an Ipv4 Socket Address.///pubenumSocketAddrV4withEq {case SocketAddrV4(Ipv4Addr, Int32) }instanceToString[SocketAddrV4] {pubdeftoString(x: SocketAddrV4): String =let SocketAddrV4.SocketAddrV4(ip, port) = x;"${ip}:${port}" }instanceFormattable[SocketAddrV4] {pubdefformat(x: SocketAddrV4): RichString = RichString.fromString(ToString.toString(x)) }}