pubsub-0.10: A library for Google/SixApart pubsub hub interaction

Portabilityportable
Stabilityprovisional
MaintainerSigbjorn Finne <sof@forkIO.com>

Network.Connection

Description

Taking care of the details of creating & tearing down network connections, both client and server connections.

Synopsis

Documentation

clientConnection :: ClientOptions -> IO ConnectionSource

clientConnection opts tries to open up a connection as requested by the ClientOptions opts. If successful, returns a Handle and its underlying Socket. The latter is only meant to be used when doing orderly & draining shutdowns. All I/O is expected to happen over the Handle.