Scoop API

scoop:scoop.platform:0.1.0

platform/posix/resolve.scoop

Selected production source · platform/posix/resolve.scoop

1package scoop.platform.net
3import scoop.platform.fs.withNativeString
4import scoop.platform.system.OsString
6internal fun platformResolve(host: OsString, port: Int, family: Int): NativeResolution {
7 @Unsafe
8 {
9 return host.withNativeString {
10 pointer -> @Unsafe
11 {
12 return@withNativeString nativeResolve(pointer, port, family)
13 }
14 }
15 }
18@Extern(name = "scoop_platform_resolve")
19private fun nativeResolve(host: Ptr<Byte>, port: Int, family: Int): NativeResolution