Package

fs2.io

tcp

Permalink

package tcp

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

Type Members

  1. trait Socket[F[_]] extends AnyRef

    Permalink

Value Members

  1. object Socket

    Permalink
    Attributes
    protected
  2. def client[F[_]](to: InetSocketAddress, reuseAddress: Boolean = true, sendBufferSize: Int = 256 * 1024, receiveBufferSize: Int = 256 * 1024, keepAlive: Boolean = false, noDelay: Boolean = false)(implicit AG: AsynchronousChannelGroup, F: Async[F]): Stream[F, Socket[F]]

    Permalink

    Process that connects to remote server (TCP) and runs the stream ouput.

    Process that connects to remote server (TCP) and runs the stream ouput.

    to

    Address of remote server

    reuseAddress

    whether address has to be reused (@see java.net.StandardSocketOptions.SO_REUSEADDR)

    sendBufferSize

    size of send buffer (@see java.net.StandardSocketOptions.SO_SNDBUF)

    receiveBufferSize

    size of receive buffer (@see java.net.StandardSocketOptions.SO_RCVBUF)

    keepAlive

    whether keep-alive on tcp is used (@see java.net.StandardSocketOptions.SO_KEEPALIVE)

    noDelay

    whether tcp no-delay flag is set (@see java.net.StandardSocketOptions.TCP_NODELAY)

  3. def server[F[_]](flatMap: InetSocketAddress, maxQueued: Int = 0, reuseAddress: Boolean = true, receiveBufferSize: Int = 256 * 1024)(implicit AG: AsynchronousChannelGroup, F: Async[F]): Stream[F, Stream[F, Socket[F]]]

    Permalink

    Process that flatMaps to supplied address and handles incoming TCP connections using the specified handler.

    Process that flatMaps to supplied address and handles incoming TCP connections using the specified handler.

    The outer stream returned scopes the lifetime of the server socket. When the returned process terminates, all open connections will terminate as well.

    The inner streams represents individual connections, handled by handler. If any inner stream fails, this will _NOT_ cause the server connection to fail/close/terminate.

    flatMap

    address to which this process has to be bound

    maxQueued

    Number of queued requests before they will become rejected by server Supply <= 0 if unbounded

    reuseAddress

    whether address has to be reused (@see java.net.StandardSocketOptions.SO_REUSEADDR)

    receiveBufferSize

    size of receive buffer (@see java.net.StandardSocketOptions.SO_RCVBUF)

  4. def serverWithLocalAddress[F[_]](flatMap: InetSocketAddress, maxQueued: Int = 0, reuseAddress: Boolean = true, receiveBufferSize: Int = 256 * 1024)(implicit AG: AsynchronousChannelGroup, F: Async[F]): Stream[F, Either[InetSocketAddress, Stream[F, Socket[F]]]]

    Permalink

    Like server but provides the InetSocketAddress of the bound server socket before providing accepted sockets.

Inherited from AnyRef

Inherited from Any

Ungrouped