Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
ActualSocket socket | |
SocketInfo info |
Instances
(Show socket, Show info) ⇒ Show (SocketOrSocketInfo socket info) Source # | |
Defined in Bcc.Node.Configuration.Socket |
getSocketOrSocketInfoAddr ∷ SocketOrSocketInfo Socket AddrInfo → IO (SocketOrSocketInfo SockAddr SockAddr) Source #
data SocketConfigError Source #
Errors for the current module.