Golang library for fast file transfers. Not protocol compatible, but heavily inspired by the tsunami protocol:
config := gonami.NewConfig()
e := gonami.BsonEncoder{}
client := gonami.NewClient(downloadDir, config, e)
client.GetFile(filename, host)
for p := range progress {
log.Println(p)
}
GetFile
will return a channel that you can use to read the download progress on
e := gonami.BsonEncoder{}
s := gonami.NewServer(e, listenPort, uploadDirectory)
go s.StartListening()
The Server
struct contains a channel member that you can use to read the upload progress on