Lost Illusion
SendChannel
openWriteChannel
ByteWriteChannel
Aleksei Tirman [JB]
val address = NetworkAddress("127.0.0.1", 12345) val socketBuilder: UDPSocketBuilder = aSocket(ActorSelectorManager(<http://Dispatchers.IO|Dispatchers.IO>)).udp() val socket = socketBuilder.connect(address) val packet = BytePacketBuilder().apply { writeFully("test".toByteArray()) }.build() socket.outgoing.send(Datagram(address = address, packet = packet))
A modern programming language that makes developers happier.