IpPort

data class IpPort(val ip: String, val port: Int, val resolutionNeeded: Boolean = false)

Helper class to pass around ip and port pairs If resolutionNeeded is true, the system will use a nslookup to resolve this to ip addresses, and return a random one (if the domain is a seeder that returns multiple choices) when resolve is called

Constructors

Link copied to clipboard
constructor(ip: String, port: Int, resolutionNeeded: Boolean = false)

Properties

Link copied to clipboard
val ip: String
Link copied to clipboard
val port: Int
Link copied to clipboard

Functions

Link copied to clipboard

If this IpPort is marked as "resolutionNeeded" calling this function will resolve the domain to a list of IPs and return a random one from that list. Otherwise (or if something goes wrong) it will simply return this

Link copied to clipboard

If this IpPort is marked as "resolutionNeeded" calling this function will resolve the domain to a list of IPs and return a random one from that list. Otherwise (or if something goes wrong) it will simply return this