Copyright | (c) Eric Mertens 2016 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
This module is responsible for creating Connection
values
for a particular server as specified by a ServerSettings
.
This involves setting up certificate stores an mapping
network settings from the client configuration into the
network connection library.
Synopsis
- withConnection :: ServerSettings -> (Connection -> IO a) -> IO a
- ircPort :: ServerSettings -> PortNumber
Documentation
withConnection :: ServerSettings -> (Connection -> IO a) -> IO a Source #
Create a new Connection
which will be closed when the continuation
finishes.
ircPort :: ServerSettings -> PortNumber Source #