aleksey.tomin
07/22/2020, 11:24 AMgetnameinfo function for macosX64 and linuxX64 target in platform.posix but for mingwX64 in platform.windows ?
It it a bug or feature?Artyom Degtyarev [JB]
07/22/2020, 12:22 PMws2tcpip.h for mingw_x64 target and netdb.h for macOS/Linux. The first header is defined as a part of windows.def , while the second can be found in <osx|linux>/posix.def . While it can be relocated to the mingw’s posix KLIB, one could say it is controversial decision.aleksey.tomin
07/22/2020, 1:50 PMgetnameinfo function to allow requests only from localhost. And now I can’t compile same code on Win and Mac.
How can I do it? I can’t use 1.4-M3 because my app cann’t be compiled on this version.Artyom Degtyarev [JB]
07/22/2020, 2:06 PMaleksey.tomin
07/22/2020, 5:14 PMexpect typealias Addr
Modifier 'expect' is not applicable to 'typealias'Artyom Degtyarev [JB]
07/22/2020, 5:22 PMexpect fun getAddr in the common code, with appropriate signature, and actual typealias getAddr = platform.posix.getaddrinfoaleksey.tomin
07/22/2020, 5:34 PMexpect fun getAddr(addr: CPointer<sockaddr>?) - type CPointer<sockaddr>? isn’t allowed in common code
Now I’ve created
expect fun getNameInfo(addrAsLong: Long, addrLength: UInt): String
and
if (getIdAddr(addr.toLong(), addrLen) == LOCALHOST) {
MHD_YES
} else {
MHD_NO
}
but it looks like uglyaleksey.tomin
07/23/2020, 6:29 AM