Connection

Accepted connection made to a specific channel AsynchronousServerSocketChannel

Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def close(): UIO[Unit]

Close the underlying socket

Close the underlying socket

def closeWrite(): UIO[Unit]

Close only the write, so the remote end will see EOF

Close only the write, so the remote end will see EOF

The local address, i.e. our server

The local address, i.e. our server

def read: Stream[Throwable, Byte]

Read the entire AsynchronousSocketChannel by emitting a Chunk[Byte] The caller of this function is NOT responsible for closing the AsynchronousSocketChannel.

Read the entire AsynchronousSocketChannel by emitting a Chunk[Byte] The caller of this function is NOT responsible for closing the AsynchronousSocketChannel.

The remote address, i.e. the connected client

The remote address, i.e. the connected client

def write: Sink[Throwable, Byte, Nothing, Int]

Write the entire Chunk[Byte] to the socket channel. The caller of this function is NOT responsible for closing the AsynchronousSocketChannel.

Write the entire Chunk[Byte] to the socket channel. The caller of this function is NOT responsible for closing the AsynchronousSocketChannel.

The sink will yield the count of bytes written.