Object

scalaz.stream

udp

Related Doc: package stream

Permalink

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

    Permalink
  2. case class Packet(origin: InetSocketAddress, bytes: ByteVector) extends Product with Serializable

    Permalink

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

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. def clone(): AnyRef

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

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

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

    Permalink

    Evaluate a Task within a UDP-connected Process.

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

    Permalink

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

  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. final def isInstanceOf[T0]: Boolean

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

    Permalink

    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]

    Permalink

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

  16. def localAddress: Process[Connection, InetSocketAddress]

    Permalink

    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]

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def receive(maxPacketSize: Int, timeout: Option[Duration] = None): Process[Connection, Packet]

    Permalink

    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]

    Permalink

    Defined as receive(maxPacketSize, timeout).repeat.

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

    Permalink

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

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

    Permalink

    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]

    Permalink

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

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

    Permalink

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

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

    Permalink

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

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

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  30. object syntax

    Permalink
  31. def toString(): String

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

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

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

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

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped