【发布时间】:2010-11-02 18:03:06
【问题描述】:
我正在开发一个使用哈希树的 p2p 应用程序。
我正在编写哈希树构造函数(publ/4 和 publ_top/4),但我不知道如何修复 publ_top/4。
我尝试用 publ/1 构建一棵树:
nivd:publ("file.txt").
prints hashes...
** exception error: no match of right hand side value [67324168]
in function nivd:publ_top/4
in call from nivd:publ/1
有问题的代码在这里:
http://github.com/AndreasBWagner/nivoa/blob/886c624c116c33cc821b15d371d1090d3658f961/nivd.erl
你认为问题出在哪里?
谢谢你, 安德烈亚斯
【问题讨论】:
-
如果你很好奇,这里描述了这个应用程序:wiki.github.com/AndreasBWagner/nivoa
标签: networking functional-programming erlang p2p sctp