ouroboros-network-framework-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Subscription.Dns

Contents

Synopsis

Documentation

data Resolver m Source #

Constructors

Resolver 

Fields

dnsSubscriptionWorker'Snocket IO Socket SockAddr → Tracer IO (WithDomainName (SubscriptionTrace SockAddr)) → Tracer IO (WithDomainName DnsTrace) → Tracer IO (WithAddr SockAddr ErrorPolicyTrace) → NetworkMutableState SockAddr → IO b → (b → (Resolver IOIO (SubscriptionTarget IO SockAddr)) → IO (SubscriptionTarget IO SockAddr)) → DnsSubscriptionParams a → Main IO (PeerStates IO SockAddr) x → (Socket → IO a) → IO x Source #

dnsSubscriptionWorkerSnocket IO Socket SockAddr → Tracer IO (WithDomainName (SubscriptionTrace SockAddr)) → Tracer IO (WithDomainName DnsTrace) → Tracer IO (WithAddr SockAddr ErrorPolicyTrace) → NetworkMutableState SockAddr → DnsSubscriptionParams a → (Socket → IO a) → IO Void Source #

dnsResolve ∷ ∀ a m s. (MonadAsync m, MonadCatch m, MonadTime m, MonadTimer m) ⇒ Tracer m DnsTrace → m a → (a → (Resolver m → m (SubscriptionTarget m SockAddr)) → m (SubscriptionTarget m SockAddr)) → StrictTVar m s → BeforeConnect m s SockAddr → DnsSubscriptionTarget → m (SubscriptionTarget m SockAddr) Source #

resolutionDelayDiffTime Source #

Time to wait for an AAAA response after receiving an A response.

Traces

data ErrorPolicyTrace Source #

Trace data for error policies

Constructors

ErrorPolicySuspendPeer (Maybe (ConnectionOrApplicationExceptionTrace SomeException)) DiffTime DiffTime

suspending peer with a given exception until

ErrorPolicySuspendConsumer (Maybe (ConnectionOrApplicationExceptionTrace SomeException)) DiffTime

suspending consumer until

ErrorPolicyLocalNodeError (ConnectionOrApplicationExceptionTrace SomeException)

caught a local exception

ErrorPolicyResumePeer

resume a peer (both consumer and producer)

ErrorPolicyKeepSuspended

consumer was suspended until producer will resume

ErrorPolicyResumeConsumer

resume consumer

ErrorPolicyResumeProducer

resume producer

ErrorPolicyUnhandledApplicationException SomeException

an application throwed an exception, which was not handled by any ErrorPolicy.

ErrorPolicyUnhandledConnectionException SomeException

connect throwed an exception, which was not handled by any ErrorPolicy.

ErrorPolicyAcceptException IOException

accept throwed an exception

Instances

Instances details
Show ErrorPolicyTrace Source # 
Instance details

Defined in Ouroboros.Network.ErrorPolicy

data WithDomainName a Source #

Constructors

WithDomainName 

Fields

Instances

Instances details
Show a ⇒ Show (WithDomainName a) Source # 
Instance details

Defined in Ouroboros.Network.Subscription.Dns

data WithAddr addr a Source #

Constructors

WithAddr 

Fields

Instances

Instances details
(Show addr, Show a) ⇒ Show (WithAddr addr a) Source # 
Instance details

Defined in Ouroboros.Network.ErrorPolicy

Methods

showsPrecIntWithAddr addr a → ShowS Source #

showWithAddr addr a → String Source #

showList ∷ [WithAddr addr a] → ShowS Source #