Class/Object

zio.nio.channels

DatagramChannel

Related Docs: object DatagramChannel | package channels

Permalink

final class DatagramChannel extends GatheringByteChannel with ScatteringByteChannel

A java.nio.channels.DatagramChannel wrapper allowing for idiomatic zio.ZIO interoperability.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DatagramChannel
  2. ScatteringByteChannel
  3. GatheringByteChannel
  4. Channel
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val channel: java.nio.channels.DatagramChannel

    Permalink
    Attributes
    protected[zio.nio.channels]
    Definition Classes
    DatagramChannelScatteringByteChannelGatheringByteChannelChannel
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def disconnect: IO[IOException, DatagramChannel]

    Permalink

    Disconnects this channel's underlying socket.

    Disconnects this channel's underlying socket.

    returns

    the disconnected datagram channel

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. def isConnected: UIO[Boolean]

    Permalink

    Tells whether this channel's underlying socket is both open and connected.

    Tells whether this channel's underlying socket is both open and connected.

    returns

    true when the socket is both open and connected, otherwise false

  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def isOpen: UIO[Boolean]

    Permalink

    Tells whether or not this channel is open.

    Tells whether or not this channel is open.

    Definition Classes
    Channel
  16. def localAddress: IO[IOException, Option[SocketAddress]]

    Permalink

    Optionally returns the socket address that this channel's underlying socket is bound to.

    Optionally returns the socket address that this channel's underlying socket is bound to.

    returns

    the local address if the socket is bound, otherwise None

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def read(dst: ByteBuffer): IO[IOException, Long]

    Permalink
    Definition Classes
    ScatteringByteChannel
  21. final def read(dsts: List[ByteBuffer]): IO[IOException, Long]

    Permalink
    Definition Classes
    ScatteringByteChannel
  22. final def readChunk(capacity: Int): IO[IOException, Chunk[Byte]]

    Permalink
    Definition Classes
    ScatteringByteChannel
  23. def receive(dst: ByteBuffer): IO[IOException, Option[SocketAddress]]

    Permalink

    Receives a datagram via this channel into the given zio.nio.core.ByteBuffer.

    Receives a datagram via this channel into the given zio.nio.core.ByteBuffer.

    dst

    the destination buffer

    returns

    the socket address of the datagram's source, if available.

  24. def remoteAddress: IO[IOException, Option[SocketAddress]]

    Permalink

    Optionally returns the remote socket address that this channel's underlying socket is connected to.

    Optionally returns the remote socket address that this channel's underlying socket is connected to.

    returns

    the remote address if the socket is connected, otherwise None

  25. def send(src: ByteBuffer, target: SocketAddress): IO[IOException, Int]

    Permalink

    Sends a datagram via this channel to the given target zio.nio.core.SocketAddress.

    Sends a datagram via this channel to the given target zio.nio.core.SocketAddress.

    src

    the source buffer

    target

    the target address

    returns

    the number of bytes that were sent over this channel

  26. def setOption[T](name: SocketOption[T], value: T): IO[IOException, DatagramChannel]

    Permalink

    Sets the value of the given socket option.

    Sets the value of the given socket option.

    name

    the socket option to be set

    value

    the value to be set

    returns

    the datagram channel with the given socket option set to the provided value

  27. def socket: UIO[DatagramSocket]

    Permalink

    Returns a reference to this channel's underlying datagram socket.

    Returns a reference to this channel's underlying datagram socket.

    returns

    the underlying datagram socket

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. def validOps: UIO[Int]

    Permalink

    Returns the set of operations supported by this channel.

    Returns the set of operations supported by this channel.

    returns

    the set of valid operations

  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def write(src: ByteBuffer): IO[Exception, Long]

    Permalink
    Definition Classes
    GatheringByteChannel
  35. final def write(srcs: List[ByteBuffer]): IO[Exception, Long]

    Permalink
    Definition Classes
    GatheringByteChannel
  36. final def writeChunk(src: Chunk[Byte]): IO[Exception, Long]

    Permalink
    Definition Classes
    GatheringByteChannel
  37. final def writeChunks(srcs: List[Chunk[Byte]]): IO[Exception, Long]

    Permalink
    Definition Classes
    GatheringByteChannel

Inherited from ScatteringByteChannel

Inherited from GatheringByteChannel

Inherited from Channel

Inherited from AnyRef

Inherited from Any

Ungrouped