socket-unix-0.1.0.0: A Unix domain sockets

Safe HaskellNone
LanguageHaskell2010

System.Socket.Family.Unix

Description

 

Synopsis

Documentation

data family SocketAddress f :: * #

The SocketAddress type is a data family. This allows to provide different data constructors depending on the socket family wihtout knowing all of them in advance or the need to patch this core library.

SocketAddressInet  inetLoopback  8080     :: SocketAddress Inet
SocketAddressInet6 inet6Loopback 8080 0 0 :: SocketAddress Inet6

socketAddressUnixPath :: ByteString -> Maybe (SocketAddress Unix) Source #

Creates address which is connected to a filesystem pathname. Returns Nothing if path's length exceeds maximal supported.

socketAddressUnixAbstract :: ByteString -> Maybe (SocketAddress Unix) Source #

Creates address with name in abstract namespace. Returns Nothing if path's length exceeds maximal supported.

getUnixPath :: SocketAddress Unix -> Maybe ByteString Source #

Returns filesystem pathname where address is connected to.