peerFromIpv4

fun peerFromIpv4(host: String, port: Int, flags: Int = 0): UtPex.PexPeer?

Build a PexPeer from a literal IPv4 dotted-quad host (e.g. "1.2.3.4") and a port. Returns null if host is not four decimal octets. IPv6 literals are not parsed here; construct those from raw bytes. That keeps this codec free of a full address parser (the peer layer's PeerAddress does that).