irc-dcc-1.0.0: A DCC message parsing and helper library for IRC clients

Safe HaskellNone
LanguageHaskell2010

Network.IRC.DCC.FileTransfer

Description

Functions for receiving files.

Each chunk is acknowledged by sending the total sum of bytes received for a file. See the CTCP specification.

Synopsis

Documentation

acceptFile Source

Arguments

:: Integral a 
=> OfferFile 
-> (PortNumber -> ExceptT String IO ())

Callback when socket is ready

-> (a -> IO ())

Callback when a chunk of data was transfered

-> ExceptT String IO () 

Accept a DCC file offer

resumeFile Source

Arguments

:: Integral a 
=> AcceptResumeFile 
-> (PortNumber -> ExceptT String IO ())

Callback when socket is ready

-> (a -> IO ())

Callback when a chunk of data was transfered

-> ExceptT String IO () 

Accept a DCC file offer for a partially downloaded file