| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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.
- acceptFile :: Integral a => OfferFile -> (PortNumber -> ExceptT String IO ()) -> (a -> IO ()) -> ReaderT (Maybe PortNumber) (ExceptT String IO) ()
- resumeFile :: Integral a => AcceptResumeFile -> (PortNumber -> ExceptT String IO ()) -> (a -> IO ()) -> ReaderT (Maybe PortNumber) (ExceptT String IO) ()
Documentation
Arguments
| :: Integral a | |
| => OfferFile | |
| -> (PortNumber -> ExceptT String IO ()) | Callback when socket is ready |
| -> (a -> IO ()) | Callback when a chunk of data was transfered |
| -> ReaderT (Maybe PortNumber) (ExceptT String IO) () |
Accept a DCC file offer
Arguments
| :: Integral a | |
| => AcceptResumeFile | |
| -> (PortNumber -> ExceptT String IO ()) | Callback when socket is ready |
| -> (a -> IO ()) | Callback when a chunk of data was transfered |
| -> ReaderT (Maybe PortNumber) (ExceptT String IO) () |
Accept a DCC file offer for a partially downloaded file