UnixSockets

fs2.io.net.unixsocket.UnixSockets
See theUnixSockets companion object
trait UnixSockets[F[_]]

Capability of working with AF_UNIX sockets.

Attributes

Companion:
object
Source:
UnixSockets.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def client(address: UnixSocketAddress): Resource[F, Socket[F]]

Returns a resource which opens a unix socket to the specified path.

Returns a resource which opens a unix socket to the specified path.

Attributes

Source:
UnixSockets.scala
def server(address: UnixSocketAddress, deleteIfExists: Boolean, deleteOnClose: Boolean): Stream[F, Socket[F]]

Listens to the specified path for connections and emits a Socket for each connection.

Listens to the specified path for connections and emits a Socket for each connection.

Note: the path referred to by address must not exist or otherwise binding will fail indicating the address is already in use. To force binding in such a case, pass deleteIfExists = true, which will first delete the path.

By default, the path is deleted when the server closes. To override this, pass deleteOnClose = false.

Attributes

Source:
UnixSockets.scala