bcc-node-1.99.0
Safe HaskellNone
LanguageHaskell2010

Bcc.Node.Configuration.Socket

Synopsis

Documentation

gatherConfiguredSocketsNodeConfigurationExceptT 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

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

Defined in Bcc.Node.Configuration.Socket

Methods

showsPrecIntSocketOrSocketInfo socket info → ShowS Source #

showSocketOrSocketInfo socket info → String Source #

showList ∷ [SocketOrSocketInfo socket info] → ShowS Source #

getSocketOrSocketInfoAddrSocketOrSocketInfo Socket AddrInfo → IO (SocketOrSocketInfo SockAddr SockAddr) Source #