Popularity
5.0
Declining
Activity
0.0
Stable
6
2
3

Monthly Downloads: 28
Programming language: Haskell
License: MIT License
Tags: Network     System     Socket    
Latest version: v0.2.0.0

socket-unix alternatives and similar packages

Based on the "socket" category.
Alternatively, view socket-unix alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of socket-unix or a related project?

Add another 'socket' Package

README

Available on Hackage License MIT Build Status

socket-unix

A Unix domain socket API for the socket library.

Usage

Creating the Unix domain socket:

import System.Socket
import System.Socket.Type.Stream
import System.Socket.Family.Unix

s <- socket :: IO (Socket Unix Stream Unix)

Creating the address for binding/connecting

address <- case socketAddressUnixPath "example.sock" of
             Just addr -> pure addr
             Nothing -> putStrLn "invalid pathname for socket"

Symlinks

Binding to a socket with a filename creates a socket in the filesystem, but does not unlink it after close called. You should handle deleting links yourself.

Portability

Linux and OS X are supported.


*Note that all licence references and agreements mentioned in the socket-unix README section above are relevant to that project's source code only.