Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype TopologyError = NodeIdNotFoundInToplogyFile FilePath
- data NetworkTopology
- newtype NodeHostIPAddress = NodeHostIPAddress {
- unNodeHostIPAddress ∷ IP
- newtype NodeHostIPv4Address = NodeHostIPv4Address {
- unNodeHostIPv4Address ∷ IPv4
- newtype NodeHostIPv6Address = NodeHostIPv6Address {
- unNodeHostIPv6Address ∷ IPv6
- data NodeSetup = NodeSetup {}
- data RemoteAddress = RemoteAddress {}
- nodeAddressToSockAddr ∷ NodeIPAddress → SockAddr
- readTopologyFile ∷ NodeConfiguration → IO (Either Text NetworkTopology)
- remoteAddressToNodeAddress ∷ RemoteAddress → Maybe (Either NodeIPAddress (NodeDnsAddress, Int))
Documentation
newtype TopologyError Source #
Instances
Show TopologyError Source # | |
Defined in Bcc.Node.Configuration.Topology |
data NetworkTopology Source #
Instances
Eq NetworkTopology Source # | |
Defined in Bcc.Node.Configuration.Topology | |
Show NetworkTopology Source # | |
Defined in Bcc.Node.Configuration.Topology | |
ToJSON NetworkTopology Source # | |
Defined in Bcc.Node.Configuration.Topology toJSON ∷ NetworkTopology → Value # toEncoding ∷ NetworkTopology → Encoding # toJSONList ∷ [NetworkTopology] → Value # toEncodingList ∷ [NetworkTopology] → Encoding # | |
FromJSON NetworkTopology Source # | |
Defined in Bcc.Node.Configuration.Topology parseJSON ∷ Value → Parser NetworkTopology # parseJSONList ∷ Value → Parser [NetworkTopology] # |
newtype NodeHostIPAddress Source #
Instances
newtype NodeHostIPv4Address Source #
Instances
newtype NodeHostIPv6Address Source #
Instances
NodeSetup | |
|
Instances
data RemoteAddress Source #
Domain name with port number
RemoteAddress | |
|
Instances
nodeAddressToSockAddr ∷ NodeIPAddress → SockAddr Source #
readTopologyFile ∷ NodeConfiguration → IO (Either Text NetworkTopology) Source #
Read the NetworkTopology
configuration from the specified file.
While running a real protocol, this gives your node its own address and
other remote peers it will attempt to connect to.
remoteAddressToNodeAddress ∷ RemoteAddress → Maybe (Either NodeIPAddress (NodeDnsAddress, Int)) Source #
Parse raAddress
field as an IP address; if it parses and the valency is
non zero return corresponding NodeAddress.