tuweni / org.apache.tuweni.net.coroutines

Package org.apache.tuweni.net.coroutines

Classes and utilities for coroutine based networking.

These classes are included in the complete Tuweni distribution, or separately when using the gradle dependency org.apache.tuweni:tuweni-net-coroutines (tuweni-net-coroutines.jar).

Types

CoroutineByteChannel

interface CoroutineByteChannel : ReadableCoroutineByteChannel, WritableCoroutineByteChannel

A co-routine channel that can read and write bytes.

CoroutineChannelGroup

sealed class CoroutineChannelGroup

A grouping of co-routine channels for the purpose of resource sharing.

CoroutineDatagramChannel

class CoroutineDatagramChannel : CoroutineByteChannel, ScatteringCoroutineByteChannel, GatheringCoroutineByteChannel, CoroutineNetworkChannel

A co-routine based datagram-oriented network channel.

CoroutineNetworkChannel

interface CoroutineNetworkChannel : NetworkChannel

A co-routine based network channel.

CoroutineSelector

sealed class CoroutineSelector

A selector for co-routine based channel IO.

CoroutineServerSocketChannel

class CoroutineServerSocketChannel : CoroutineNetworkChannel

A co-routine based network channel for stream-oriented connection listening.

CoroutineSocketChannel

class CoroutineSocketChannel : CoroutineByteChannel, ScatteringCoroutineByteChannel, GatheringCoroutineByteChannel, CoroutineNetworkChannel

A co-routine based stream-oriented network channel.

GatheringCoroutineByteChannel

interface GatheringCoroutineByteChannel : WritableCoroutineByteChannel

A channel that can write bytes from a sequence of buffers.

ReadableCoroutineByteChannel

interface ReadableCoroutineByteChannel

A co-routine channel that can read bytes.

ScatteringCoroutineByteChannel

interface ScatteringCoroutineByteChannel : ReadableCoroutineByteChannel

A channel that can read bytes into a sequence of buffers.

WritableCoroutineByteChannel

interface WritableCoroutineByteChannel

A co-routine channel that can write bytes.

Properties

CommonCoroutineGroup

val CommonCoroutineGroup: CoroutineChannelGroup

A common co-routine channel group.