object udp

Source
udp.scala
Linear Supertypes
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. trait Connection [+A] extends AnyRef
  2. case class Packet (origin: InetSocketAddress, bytes: ByteVector) extends Product with Serializable

    A UDP packet, consisting of an origin IP and port, and a ByteVector payload.

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 clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def eval[A](a: Task[A]): Process[Connection, A]

    Evaluate a Task within a UDP-connected Process.

  9. def eval_[A](a: Task[A]): Process[Connection, Nothing]

    Evaluate and discard the result of a Task within a UDP-connected Process.

  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def lift[A](p: Process[Task, A]): Process[Connection, A]

    Run a Process[Task,A] within a UDP-connected Process.

  15. def listen[A](port: Int, receiveBufferSize: Int = 1024 * 32, sendBufferSize: Int = 1024 * 32, reuseAddress: Boolean = true)(p: Process[Connection, A]): Process[Task, A]

    Open a UDP socket on the specified port and run the given process p.

  16. def localAddress: Process[Connection, InetSocketAddress]

    Returns a single-element stream containing the local address of the bound socket.

  17. def merge[A](a: Process[Connection, A], a2: Process[Connection, A])(implicit S: Strategy): Process[Connection, A]
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  21. def receive(maxPacketSize: Int, timeout: Option[Duration] = None): Process[Connection, Packet]

    Receive a single UDP Packet.

    Receive a single UDP Packet. maxPacketSize controls the maximum number of bytes in the received. See java.net.DatagramSocket#receive for information about what exceptions may be raised within the returned stream.

  22. def receives(maxPacketSize: Int, timeout: Option[Duration] = None): Process[Connection, Packet]

    Defined as receive(maxPacketSize, timeout).repeat.

  23. def send(to: InetAddress, destinationPort: Int, bytes: ByteVector): Process[Connection, Unit]

    Defined as send(new InetSocketAddress(to, destinationPort), bytes).

  24. def send(to: InetSocketAddress, bytes: ByteVector): Process[Connection, Unit]

    Send a single UDP Packet to the given destination.

    Send a single UDP Packet to the given destination. Returns a single Unit. See java.net.DatagramSocket#send for information about what exceptions may be raised within the returned stream.

  25. def sends(to: InetAddress, destinationPort: Int, chunks: Process[Connection, ByteVector]): Process[Connection, Unit]

    Defined as sends(new InetSocketAddress(to, destinationPort), chunks).

  26. def sends(to: InetSocketAddress, chunks: Process[Connection, ByteVector]): Process[Connection, Unit]

    Defined as chunks.flatMap { bytes => udp.send(to, bytes) }

  27. def sends_(to: InetAddress, destinationPort: Int, chunks: Process[Connection, ByteVector]): Process[Connection, Nothing]

    Defined as sends(new InetSocketAddress(to, destinationPort), chunks).drain.

  28. def sends_(to: InetSocketAddress, chunks: Process[Connection, ByteVector]): Process[Connection, Nothing]

    Defined as chunks.flatMap { bytes => udp.send(to, bytes) }.drain

  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def wye[A, B, C](a: Process[Connection, A], b: Process[Connection, B])(y: Wye[A, B, C])(implicit S: Strategy): Process[Connection, C]
  35. object syntax

Inherited from AnyRef

Inherited from Any

Ungrouped