nntp-0.0.1: Library to connect to an NNTP Server

Portabilityportable
Stabilitynone
Maintaineruzytkownik2@gmail.com

Network.NNTP.RFC977

Contents

Description

RFC977 is the most popular version of protocol.

Synopsis

Types

data Connection Source

An RFC977 connection.

Functions

joinToSocketSource

Arguments

:: Socket

The existing socket

-> IO (Connection, Bool)

Returns connection and a bool indicating if posting is allowed

Usage existing Socket and creating from it connection.

joinToHandleSource

Arguments

:: Handle

Existing handle

-> IO (Connection, Bool)

Returns connection and a bool indicating if posting is allowed

Usage existing Handle and creating from it connection.

connectToHostSource

Arguments

:: String

A server name

-> Maybe Word16

Server port. Nothing indicates default

-> IO (Connection, Bool)

Returns connection and a bool indicating if posting is allowed

Connects to NNTP server