cardano-node-8.8.1: The cardano full node
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Node.Configuration.Socket

Synopsis

Documentation

gatherConfiguredSockets :: SocketConfig -> ExceptT SocketConfigError IO (Maybe (SocketOrSocketInfo Socket SockAddr), Maybe (SocketOrSocketInfo Socket SockAddr), Maybe (SocketOrSocketInfo LocalSocket LocalAddress)) Source #

Gather from the various sources of configuration which sockets we will use for the public node-to-node and the local node-to-client IPC. It returns SocketOrSocketInfo for ipv4, ipv6 and local socket.

We get such configuration from:

  • node config file
  • node cli
  • systemd socket activation

data SocketOrSocketInfo socket info Source #

Since we support systemd socket activation, we have to handle being given actual already-constructed sockets, or the info needed to make new sockets later.

Constructors

ActualSocket socket 
SocketInfo info 

Instances

Instances details
(Show socket, Show info) => Show (SocketOrSocketInfo socket info) Source # 
Instance details

Defined in Cardano.Node.Configuration.Socket

Methods

showsPrec :: Int -> SocketOrSocketInfo socket info -> ShowS Source #

show :: SocketOrSocketInfo socket info -> String Source #

showList :: [SocketOrSocketInfo socket info] -> ShowS Source #