courier-0.1.0.8: A message-passing library for simplifying network applications

Portabilitynon-portable (uses STM)
Stabilityexperimental
Maintainerphil@haphazardhouse.net
Safe HaskellNone

Network.Transport.TCP

Description

TCP transports deliver messages to other Endpoints using TCP/IP.

Each TCP transport manages both socket bindings and connections on behalf of Endpoints, dynamically opening / closing new sockets as needed to deliver messages to other Endpoints using TCP transports.

Synopsis

Documentation

newTCPTransport :: Resolver -> IO TransportSource

Create a new Transport suitable for sending messages over TCP/IP. There can be multiple instances of these Transports: Endpoint using different instances will still be able to communicate, provided they use correct TCP/IP addresses (or hostnames) for communication.