Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Node.Configuration.Socket
Synopsis
- data SocketConfig = SocketConfig {}
- gatherConfiguredSockets ∷ SocketConfig → ExceptT SocketConfigError IO (Maybe (SocketOrSocketInfo Socket SockAddr), Maybe (SocketOrSocketInfo Socket SockAddr), Maybe (SocketOrSocketInfo LocalSocket LocalAddress))
- data SocketOrSocketInfo socket info
- = ActualSocket socket
- | SocketInfo info
- getSocketOrSocketInfoAddr ∷ SocketOrSocketInfo Socket SockAddr → IO (SocketOrSocketInfo SockAddr SockAddr)
- data SocketConfigError
- renderSocketConfigError ∷ SocketConfigError → String
Documentation
data SocketConfig Source #
Constructors
SocketConfig | |
Fields |
Instances
Eq SocketConfig Source # | |
Defined in Cardano.Node.Configuration.Socket Methods (==) ∷ SocketConfig → SocketConfig → Bool Source # (/=) ∷ SocketConfig → SocketConfig → Bool Source # | |
Show SocketConfig Source # | |
Defined in Cardano.Node.Configuration.Socket | |
AdjustFilePaths SocketConfig Source # | |
Defined in Cardano.Node.Types Methods adjustFilePaths ∷ (FilePath → FilePath) → SocketConfig → SocketConfig Source # |
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
(Show socket, Show info) ⇒ Show (SocketOrSocketInfo socket info) Source # | |
Defined in Cardano.Node.Configuration.Socket |
getSocketOrSocketInfoAddr ∷ SocketOrSocketInfo Socket SockAddr → IO (SocketOrSocketInfo SockAddr SockAddr) Source #
data SocketConfigError Source #
Errors for the current module.
Constructors