spierce7
10/06/2022, 10:31 PMspierce7
10/06/2022, 10:34 PMremove("test")
val tcp = aSocket(SelectorManager()).tcp()
val server = tcp.bind(UnixSocketAddress("test"))
println(server.localAddress)
val serverConnection = server.accept()
val serverOutput = serverConnection.openWriteChannel(autoFlush = true)
In your java client connect to the socket:
val tcp = aSocket(SelectorManager()).tcp()
println("waiting for connection...")
val clientConnection = tcp.connect(UnixSocketAddress("test"))
val clientInput = clientConnection.openReadChannel()
Send data from Kotlin native:
serverOutput.writeStringUtf8(imageBase64)
serverOutput.writeChar('\n')
Big Chungus
10/07/2022, 6:39 AMspierce7
10/07/2022, 12:57 PMBig Chungus
10/07/2022, 12:59 PMBig Chungus
10/07/2022, 12:59 PMspierce7
10/07/2022, 7:03 PMBig Chungus
10/08/2022, 10:43 AMBig Chungus
10/08/2022, 10:43 AM