-
Notifications
You must be signed in to change notification settings - Fork 31
kn: HostResolver #1229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kn: HostResolver #1229
Conversation
This comment has been minimized.
This comment has been minimized.
This reverts commit 272b6a0.
runtime/build.gradle.kts
Outdated
| } | ||
| } | ||
|
|
||
| configureIosSimulatorTasks() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Had to bump Gradle versions because of issues invoking this function:
* What went wrong:
Could not determine the dependencies of task ':runtime:crt-util:iosSimulatorArm64Test'.
> Could not create task ':runtime:crt-util:bootIosSimulatorDevice'.
> 'org.gradle.api.tasks.Exec org.gradle.api.tasks.Exec.setIgnoreExitValue(boolean)'
This comment has been minimized.
This comment has been minimized.
| val (size, addrPtr, constructor) = when (sa_family.toInt()) { | ||
| AF_INET -> Triple( | ||
| 4, | ||
| reinterpret<sockaddr_in>().sin_addr.ptr, | ||
| { bytes: ByteArray -> IpV4Addr(bytes) }, | ||
| ) | ||
| AF_INET6 -> Triple( | ||
| 16, | ||
| reinterpret<sockaddr_in6>().sin6_addr.ptr, | ||
| { bytes: ByteArray -> IpV6Addr(bytes) }, | ||
| ) | ||
| else -> throw IllegalArgumentException("Unsupported sockaddr family $sa_family") | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment: Nice! I wish non-Pair tuples were a bit easier to use in Kotlin but this is a great abstraction.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…ng. Ignore error code 148/149 in shutdown
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Affected ArtifactsChanged in size
|
HostResolveron Native usinggetaddrinfoHostResolverIssue #
Description of changes
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.