Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Node.Configuration.Socket
Synopsis
- gatherConfiguredSockets ∷ NodeConfiguration → ExceptT SocketConfigError IO (Maybe (SocketOrSocketInfo Socket AddrInfo), Maybe (SocketOrSocketInfo Socket AddrInfo), Maybe (SocketOrSocketInfo Socket SocketPath))
- data SocketOrSocketInfo socket info
- = ActualSocket socket
- | SocketInfo info
- getSocketOrSocketInfoAddr ∷ SocketOrSocketInfo Socket AddrInfo → IO (SocketOrSocketInfo SockAddr SockAddr)
- data SocketConfigError
- renderSocketConfigError ∷ SocketConfigError → String
Documentation
gatherConfiguredSockets ∷ NodeConfiguration → ExceptT SocketConfigError IO (Maybe (SocketOrSocketInfo Socket AddrInfo), Maybe (SocketOrSocketInfo Socket AddrInfo), Maybe (SocketOrSocketInfo Socket SocketPath)) 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
(Show socket, Show info) ⇒ Show (SocketOrSocketInfo socket info) Source # | |
Defined in Cardano.Node.Configuration.Socket Methods showsPrec ∷ Int → SocketOrSocketInfo socket info → ShowS # show ∷ SocketOrSocketInfo socket info → String # showList ∷ [SocketOrSocketInfo socket info] → ShowS # |
getSocketOrSocketInfoAddr ∷ SocketOrSocketInfo Socket AddrInfo → IO (SocketOrSocketInfo SockAddr SockAddr) Source #
data SocketConfigError Source #
Errors for the current module.
Constructors
Instances
Show SocketConfigError Source # | |
Defined in Cardano.Node.Configuration.Socket Methods showsPrec ∷ Int → SocketConfigError → ShowS # show ∷ SocketConfigError → String # showList ∷ [SocketConfigError] → ShowS # | |
Exception SocketConfigError Source # | |
Defined in Cardano.Node.Configuration.Socket |