Packages

final class AsynchronousSocketChannel extends AsynchronousByteChannel

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsynchronousSocketChannel
  2. AsynchronousByteChannel
  3. Channel
  4. IOCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AsynchronousSocketChannel(channel: java.nio.channels.AsynchronousSocketChannel)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def bind(address: Option[SocketAddress]): IO[IOException, Unit]
  6. def bindAuto: IO[IOException, Unit]
  7. def bindTo(address: SocketAddress): IO[IOException, Unit]
  8. val channel: java.nio.channels.AsynchronousSocketChannel
    Attributes
    protected
    Definition Classes
    AsynchronousSocketChannelAsynchronousByteChannelChannel
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. final def close: IO[IOException, Unit]

    Closes this channel.

    Closes this channel.

    Definition Classes
    ChannelIOCloseable
  11. def connect(socketAddress: SocketAddress): IO[IOException, Unit]
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def isOpen: UIO[Boolean]

    Tells whether or not this channel is open.

    Tells whether or not this channel is open.

    Definition Classes
    Channel
  19. def localAddress: IO[IOException, Option[SocketAddress]]
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def read(dsts: List[ByteBuffer], timeout: Duration): IO[IOException, Long]

    Reads data from this channel into a set of buffers, returning the number of bytes read.

    Reads data from this channel into a set of buffers, returning the number of bytes read.

    Fails with java.io.EOFException if end-of-stream is reached.

  24. def read(dst: ByteBuffer, timeout: Duration): IO[IOException, Int]

    Reads data from this channel into buffer, returning the number of bytes read.

    Reads data from this channel into buffer, returning the number of bytes read.

    Fails with java.io.EOFException if end-of-stream is reached.

  25. final def read(b: ByteBuffer): IO[IOException, Int]

    Reads data from this channel into buffer, returning the number of bytes read.

    Reads data from this channel into buffer, returning the number of bytes read.

    Fails with java.io.EOFException if end-of-stream is reached.

    Definition Classes
    AsynchronousByteChannel
  26. def readChunk(capacity: Int, timeout: Duration): IO[IOException, Chunk[Byte]]
  27. final def readChunk(capacity: Int): IO[IOException, Chunk[Byte]]
    Definition Classes
    AsynchronousByteChannel
  28. def readChunks(capacities: List[Int], timeout: Duration): IO[IOException, List[Chunk[Byte]]]
  29. def remoteAddress: IO[IOException, Option[SocketAddress]]
  30. def setOption[T](name: SocketOption[T], value: T): IO[IOException, Unit]
  31. def shutdownInput: IO[IOException, Unit]
  32. def shutdownOutput: IO[IOException, Unit]
  33. def sink(bufferConstruct: UIO[ByteBuffer] = Buffer.byte(5000)): ZSink[Clock, IOException, Byte, Byte, Long]

    A sink that will write all the bytes it receives to this channel.

    A sink that will write all the bytes it receives to this channel.

    bufferConstruct

    Optional, overrides how to construct the buffer used to transfer bytes received by the sink to this channel.

    Definition Classes
    AsynchronousByteChannel
  34. def stream(bufferConstruct: UIO[ByteBuffer] = Buffer.byte(5000)): Stream[IOException, Byte]

    A ZStream that reads from this channel.

    A ZStream that reads from this channel. The stream terminates without error if the channel reaches end-of-stream.

    bufferConstruct

    Optional, overrides how to construct the buffer used to transfer bytes read from this channel into the stream.

    Definition Classes
    AsynchronousByteChannel
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  40. def write(srcs: List[ByteBuffer], timeout: Duration): IO[IOException, Long]
  41. def write(src: ByteBuffer, timeout: Duration): IO[IOException, Int]
  42. final def write(b: ByteBuffer): IO[IOException, Int]

    Writes data into this channel from buffer, returning the number of bytes written.

    Writes data into this channel from buffer, returning the number of bytes written.

    Definition Classes
    AsynchronousByteChannel
  43. def writeChunk(chunk: Chunk[Byte], timeout: Duration): IO[IOException, Unit]
  44. final def writeChunk(chunk: Chunk[Byte]): ZIO[Clock, IOException, Unit]

    Writes a chunk of bytes to this channel.

    Writes a chunk of bytes to this channel.

    More than one write operation may be performed to write out the entire chunk.

    Definition Classes
    AsynchronousByteChannel
  45. def writeChunks(chunks: List[Chunk[Byte]], timeout: Duration): IO[IOException, Long]

Inherited from Channel

Inherited from IOCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped