UnixSockets

trait UnixSockets[F[_]]

Capability of working with AF_UNIX sockets.

Companion:
object
class Object
trait Matchable
class Any

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.

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.