Simon 271fc3d859 client is able to post msg from gui | 2 年之前 | |
---|---|---|
.vscode | 2 年之前 | |
c | 2 年之前 | |
client | 2 年之前 | |
data | 2 年之前 | |
follower | 2 年之前 | |
leader | 2 年之前 | |
lib | 2 年之前 | |
.gitignore | 2 年之前 | |
README.md | 2 年之前 | |
comm | 2 年之前 | |
comm.go | 2 年之前 | |
go.mod | 2 年之前 | |
go.sum | 2 年之前 | |
index.html | 2 年之前 | |
main.js | 2 年之前 | |
package-lock.json | 2 年之前 |
This is the source code following the bachelor thesis Anonymous Topic-Based PubSub Communication for Microblogging.
To execute you need to run follower.go, wait for print "start leader", then run leader.go, wait for 1sec and then start client.go The parameters used, like number of clients or the write database size, are global variables in the respective files.