libraft-0.1.1.0: Raft consensus algorithm

Safe HaskellNone
LanguageHaskell2010

Examples.Raft.Socket.Common

Synopsis

Documentation

hostPortToNid :: (HostName, ServiceName) -> NodeId Source #

Convert a host and a port to a valid NodeId

nidToHostPort :: NodeId -> (HostName, ServiceName) Source #

Retrieve the host and port from a valid NodeId

getFreePort :: IO ServiceName Source #

Get a free port number.