eirikb
04/13/2021, 7:20 PMeirikb
04/13/2021, 7:29 PMActorSelectorManager
with SelectorManager
, <http://Dispatchers.IO|Dispatchers.IO>
with Dispatchers.Default
and w.write
with w.writeStringUtf8
. Got some runtime errors, but it did connect and write some stuff 🙂eirikb
04/13/2021, 7:34 PMmbonnin
04/13/2021, 11:21 PMeirikb
04/14/2021, 4:12 AMmbonnin
04/14/2021, 7:26 AMeirikb
04/14/2021, 7:46 AMeirikb
04/14/2021, 10:52 AM> No matching variant of io.ktorktor network1.5.3 was found.😢
eirikb
04/14/2021, 11:00 AMeirikb
04/14/2021, 11:08 AMNative - TCP client only (linux x64, macos, ios, watchos, tvos)
eirikb
04/14/2021, 11:15 AMFor all Unix- or Windows-based targets (including Android and iOS targets) we provide theSorry for the ranting. I will try this next 🙂platform lib. It contains bindings to platform's implementation of the POSIX standard.posix
Victor ADĂSCĂLIȚEI
04/14/2021, 12:34 PMeirikb
04/14/2021, 12:50 PMmbonnin
04/14/2021, 12:50 PMmbonnin
04/14/2021, 12:52 PMmbonnin
04/14/2021, 12:53 PMval socketFd = socket(AF_INET, SOCK_STREAM, 0)
in a mingw sourceSet and see if that compilesmbonnin
04/14/2021, 12:54 PMeirikb
04/14/2021, 12:55 PMmbonnin
04/14/2021, 12:55 PMeirikb
04/14/2021, 12:55 PMeirikb
04/14/2021, 12:56 PMmbonnin
04/14/2021, 12:57 PMSource
and Sinks
that take a file descriptor as input: https://github.com/apollographql/apollo-android/blob/3588729f16d6c6f5e4c2eec9139bf[…]n/com/apollographql/apollo3/integration/FileDescriptorSource.ktmbonnin
04/14/2021, 12:57 PMmbonnin
04/14/2021, 12:58 PMconnect
instead of listen
and then get a fileDescriptor that you turn into a okio.Source
eirikb
04/14/2021, 12:58 PMeirikb
04/14/2021, 12:59 PMeirikb
04/14/2021, 1:00 PMmbonnin
04/14/2021, 1:00 PMmbonnin
04/14/2021, 1:00 PMmbonnin
04/14/2021, 1:01 PMeirikb
04/14/2021, 1:01 PMmbonnin
04/14/2021, 1:01 PMeirikb
04/14/2021, 1:02 PMmbonnin
04/14/2021, 1:03 PMmbonnin
04/14/2021, 1:03 PMmbonnin
04/14/2021, 1:04 PMeirikb
04/14/2021, 1:07 PMmbonnin
04/14/2021, 1:09 PMeirikb
04/14/2021, 1:10 PMmbonnin
04/14/2021, 1:10 PMeirikb
04/14/2021, 1:11 PMeirikb
04/14/2021, 1:12 PMmbonnin
04/14/2021, 1:14 PMmemScoped
and low level APIs but you're pretty much guaranteed stable and battle-tested API whereas ktor, especially ktor-network seems way youngereirikb
04/14/2021, 1:15 PMalloc<sockaddr_in>()
could affect my sleep cycle 😛mbonnin
04/14/2021, 1:15 PMmbonnin
04/14/2021, 1:16 PMeirikb
04/14/2021, 1:16 PMmbonnin
04/14/2021, 1:17 PMeirikb
04/14/2021, 3:59 PMeirikb
04/14/2021, 4:10 PMThomas
04/14/2021, 4:36 PMeirikb
04/14/2021, 5:28 PMThomas
04/14/2021, 6:23 PMeirikb
04/14/2021, 7:11 PMeirikb
04/14/2021, 7:12 PMThomas
04/14/2021, 7:57 PMThomas
04/14/2021, 8:00 PMThomas
04/14/2021, 8:00 PMThomas
04/14/2021, 8:01 PMeirikb
04/14/2021, 8:02 PMThomas
04/14/2021, 8:02 PMeirikb
04/14/2021, 8:03 PMeirikb
04/14/2021, 8:04 PM../gradlew build -x test
without luckThomas
04/16/2021, 2:50 PM--continue
flag so it ignores failing tests. Is that what you want?