/*
NNCP -- Node to Node copy, utilities for store-and-forward data exchange
-Copyright (C) 2016-2019 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2016-2020 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
"testing"
"testing/quick"
- "github.com/davecgh/go-xdr/xdr2"
+ xdr "github.com/davecgh/go-xdr/xdr2"
"golang.org/x/crypto/blake2b"
)
DefaultNiceFile,
src,
fileName,
+ MaxFileSize,
1<<15,
+ MaxFileSize,
); err != nil {
t.Error(err)
return false
DefaultNiceFile,
srcPath,
"samefile",
+ MaxFileSize,
1<<15,
+ MaxFileSize,
); err != nil {
t.Error(err)
return false
if len(dirFiles(txPath)) != 0 || len(dirFiles(rxPath)) == 0 {
return false
}
- ctx.Neigh[*nodeOur.Id].Freq = &spool
+ ctx.Neigh[*nodeOur.Id].FreqPath = &spool
ctx.Toss(ctx.Self.Id, DefaultNiceFreq, false, false, false, false, false, false)
if len(dirFiles(txPath)) != 0 || len(dirFiles(rxPath)) == 0 {
return false