You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently a InetSocketAddress can be constructed via a hostname
Source: SocketAddressJvm.kt
public actual constructor(hostname: String, port: Int) :
this(java.net.InetSocketAddress(hostname, port))
Would be nice if there is a constructor with an address array like
public actual constructor(address: ByteArray, port: Int) : {
val inet = InetAddress.getByAddress(address)
this(java.net.InetSocketAddress(inet, port))
}
// Note this is only an example (not sure if that works, only to get the idea)