/*
NNCP -- Node to Node copy, utilities for store-and-forward data exchange
-Copyright (C) 2016-2019 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2016-2021 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
import (
"net"
+ "time"
"github.com/gorhill/cronexpr"
)
RxRate int
TxRate int
Addr *string
- OnlineDeadline uint
- MaxOnlineTime uint
+ OnlineDeadline time.Duration
+ MaxOnlineTime time.Duration
+ WhenTxExists bool
+
+ AutoToss bool
+ AutoTossDoSeen bool
+ AutoTossNoFile bool
+ AutoTossNoFreq bool
+ AutoTossNoExec bool
+ AutoTossNoTrns bool
}
func (ctx *Ctx) CallNode(
nice uint8,
xxOnly TRxTx,
rxRate, txRate int,
- onlineDeadline, maxOnlineTime uint,
+ onlineDeadline, maxOnlineTime time.Duration,
listOnly bool,
onlyPkts map[[32]byte]bool,
) (isGood bool) {
"txspeed": state.TxSpeed,
}, "")
isGood = true
- conn.Close()
+ conn.Close() // #nosec G104
break
} else {
ctx.LogE("call-start", sds, err, "")
- conn.Close()
+ conn.Close() // #nosec G104
}
}
return