The network-transport package
Network.Transport is a Network Abstraction Layer which provides the following high-level concepts:
Nodes in the network are represented by EndPoints. These are heavyweight stateful objects.
Each EndPoint has an EndPointAddress.
Connections can be established from one EndPoint to another using the EndPointAddress of the remote end.
The EndPointAddress can be serialised and sent over the network, where as EndPoints and connections cannot.
Connections between EndPoints are unidirectional and lightweight.
Outgoing messages are sent via a Connection object that represents the sending end of the connection.
Incoming messages for all of the incoming connections on an EndPoint are collected via a shared receive queue.
In addition to incoming messages, EndPoints are notified of other Events such as new connections or broken connections.
This design was heavily influenced by the design of the Common Communication Interface (http://www.olcf.ornl.gov/center-projects/common-communication-interface). Important design goals are:
Connections should be lightweight: it should be no problem to create thousands of connections between endpoints.
Error handling is explicit: every function declares as part of its type which errors it can return (no exceptions are thrown)
Error handling is abstract: errors that originate from implementation specific problems (such as no more sockets in the TCP implementation) get mapped to generic errors (insufficient resources) at the Transport level.
This package provides the generic interface only; you will probably also want to install at least one transport implementation (network-transport-*).
Properties
| Versions | 0.2.0, 0.2.0.1, 0.2.0.2, 0.3.0, 0.3.0.1 |
|---|---|
| Dependencies | base (≥4.3 & <5), binary (0.5.*), bytestring (0.9.*), transformers (≥0.2 & <0.4) |
| License | BSD3 |
| Copyright | Well-Typed LLP |
| Author | Duncan Coutts, Nicolas Wu, Edsko de Vries |
| Maintainer | edsko@well-typed.com, dcoutts@well-typed.com |
| Stability | experimental |
| Category | Network |
| Home page | http://github.com/haskell-distributed/distributed-process |
| Bug tracker | mailto:edsko@well-typed.com |
| Source repository | git clone https://github.com/haskell-distributed/distributed-process |
| Upload date | Sat Jul 7 07:56:24 UTC 2012 |
| Uploaded by | EdskoDeVries |
| Built on | ghc-7.4 |
| Distributions | NixOS: 0.3.0.1 |
Modules
Downloads
- network-transport-0.2.0.tar.gz (Cabal source package)
- package description (included in the package)