Package

monix.nio

udp

Permalink

package udp

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. udp
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract class AsyncDatagramChannel extends AutoCloseable

    Permalink

    An asynchronous channel for reading, writing, and manipulating an UDP socket.

    An asynchronous channel for reading, writing, and manipulating an UDP socket.

    On the JVM this is a wrapper around java.nio.channels.DatagramChannel

  2. case class Packet(data: Array[Byte], to: InetSocketAddress) extends Product with Serializable

    Permalink
  3. abstract class TaskDatagramChannel extends AnyRef

    Permalink

    A Task based asynchronous channel for reading, writing, and manipulating an UDP socket.

    A Task based asynchronous channel for reading, writing, and manipulating an UDP socket.

    On the JVM this is a wrapper around java.nio.channels.DatagramChannel

    Example:
    1. val ch = TaskDatagramChannel()
      ch
        .send(Packet("Hello world!".getBytes("UTF-8")), new InetSocketAddress("localhost", 2115)))
        .map { len =>
          println(len)
          ch.close()
        }
        .runAsync

Value Members

  1. object AsyncDatagramChannel

    Permalink
  2. object TaskDatagramChannel

    Permalink
  3. def bind(host: String, port: Int)(implicit scheduler: Scheduler): Task[TaskDatagramChannel]

    Permalink

    Opens a TaskDatagramChannel which can receive packets on the specified UDP port.

    Opens a TaskDatagramChannel which can receive packets on the specified UDP port.

    host

    hostname

    port

    UDP port number

    returns

    a TaskDatagramChannel

Inherited from AnyRef

Inherited from Any

Ungrouped