scalaz.stream

udp

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
Learn more about member selection
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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  10. def eval[A](a: Task[A]): Process[Connection, A]

    Evaluate a Task within a UDP-connected Process.

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

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

  12. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def lift[A](p: Process[Task, A]): Process[Connection, A]

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

  17. 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.

  18. def localAddress: Process[Connection, InetSocketAddress]

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

  19. def merge[A](a: Process[Connection, A], a2: Process[Connection, A])(implicit S: Strategy): Process[Connection, A]

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

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. 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.

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

    Defined as receive(maxPacketSize, timeout).repeat.

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

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

  26. 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.

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  32. object syntax

  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def wye[A, B, C](a: Process[Connection, A], b: Process[Connection, B])(y: Wye[A, B, C])(implicit S: Strategy): Process[Connection, C]

Inherited from AnyRef

Inherited from Any

Ungrouped