Merge pull request #5007 from IntersectMBO/coot/drop-non-p2p
Removal of NonP2P Network Components
Removal of NonP2P Network Components
* Updated to compile with changes in the previous commit. * APIs removed from `Ouroboros.Network.{NodeToClient,NodeToNode}` modules: * NetworkServerTracers * NetworkMutableState APIs * withServer * ErrorPolicies * WithAddr * SuspendDecision * APIs removed from `Ouroboros.Network.NodeToNode` module: * IPSubscriptionTarget * NetworkIPSubscription * NetworkSubscriptionTracers * SubscriptionParams * DnsSubscriptionTarget * DnsSubscriptioinParams * NetworkDNSSubscriptionTracers * dnsSubscriptionWorker
* `Ouroboros.Network.Subscription` removed; * `Ouroboros.Network.ErrorPolicy` removed; * APIs removed from `Ouroboros.Network.Socket`: * `NetworkMutableState` & friends, * `withServerNode` and `withServerNode'`, * `NetworkServerTracers`, * `fromSnocket`, * `beginConnection` * `Ouroboros.Network.Server.Socket` replaced with a simpler server implementation in `Test.Ouroboros.Network.Server`. All tests & demos of `ouroboros-network-framework` update.
* Updated to compile with changes in the previous commit. * APIs removed from `Ouroboros.Network.{NodeToClient,NodeToNode}` modules: * NetworkServerTracers * NetworkMutableState APIs * withServer * ErrorPolicies * WithAddr * SuspendDecision * APIs removed from `Ouroboros.Network.NodeToNode` module: * IPSubscriptionTarget * NetworkIPSubscription * NetworkSubscriptionTracers * SubscriptionParams * DnsSubscriptionTarget * DnsSubscriptioinParams * NetworkDNSSubscriptionTracers * dnsSubscriptionWorker
* `Ouroboros.Network.Subscription` removed; * `Ouroboros.Network.ErrorPolicy` removed; * APIs removed from `Ouroboros.Network.Socket`: * `NetworkMutableState` & friends, * `withServerNode` and `withServerNode'`, * `NetworkServerTracers`, * `fromSnocket`, * `beginConnection` * `Ouroboros.Network.Server.Socket` replaced with a simpler server implementation in `Test.Ouroboros.Network.Server`. All tests & demos of `ouroboros-network-framework` update.
Mux: bind threads to a capability
Mux: bind threads to a capability
Adding `ForkPolicy` callback rather than extending `MiniProtocol` type (as it is done in `network-mux`'s `MiniProtocolInfo`). This way we'll be able to hide the policy inside `ouroboros-network` and not leak it to `ouroboros-consensus` where the list of `MiniProtocol`s is constructed.
Just to make it similar to test libraries in other packages.
The `Ouroboros.Network.RemoteAddress.Codec` seems like a better place for it, since its not only `peer-sharing` related.