sync-mht-0.3.6.0: Fast incremental file transfer using Merkle-Hash-Trees

Safe HaskellNone
LanguageHaskell2010

Sync.MerkleTree.Server

Synopsis

Documentation

data ServerState Source

Constructors

ServerState 

Fields

st_handles :: Map Int Handle

Map of open file handles with their ids

st_nextHandle :: Int

Next available id

st_trie :: Trie Entry

Merkle Hash Tree of server file hierarchy

st_path :: FilePath

path of the root of the file hierarchy

withHandle :: Handle -> Int -> ServerMonad QueryFileResponse Source

Respond to a queryFile or queryFileCont request for a given file handle and id