Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 ()) -> ExceptT String IO ()
- resumeFile :: Integral a => AcceptResumeFile -> (PortNumber -> ExceptT String IO ()) -> (a -> IO ()) -> ExceptT String IO ()
Documentation
:: 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
:: 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