@hackage krpc0.6.1.0
KRPC protocol implementation
Categories
License
BSD-3-Clause
Maintainer
Sam Truzjan <pxqr.sta@gmail.com>
Links
Versions
Installation
Dependencies (13)
- base >=4 && <5
- bytestring >=0.10
- containers
- ghc-prim
- mtl
- text >=0.11 Show all…
Dependents (2)
@hackage/acme-everything, @hackage/bittorrent
Synopsis
KRPC is simple remote procedure call mechanism used by bittorrent DHT but might be used anywhere else.
Description
KRPC basically consisting of bencoded dictionaries sent over UDP. This implementation provides extra safiety by separation of procedure signature and implementation and baking procedure type in host language, thus it's hard to shoot yourself in the foot accidently.
See bittorrent DHT specification for detailed protocol description.
Example
TODO
Modules
-
Remote.KRPC — simple interface which reduce all RPC related stuff to a few lines. Should be used in the first place.
-
Remote.KRPC.Protocol — raw protocol implementation.
-
Remote.KRPC.Scheme — message validation.
Documentation
For usage see examples in examples
directory.
For documentation see haddock generated documentation.
Build Status 
Maintainer pxqr.sta@gmail.com
Feel free to report bugs and suggestions via github issue tracker or the mail.