]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cypherpunks.ru/nncp/node.go
Fix invalid -rx/-tx arguments processing
[nncp.git] / src / cypherpunks.ru / nncp / node.go
index 1e1b5bab3b3e96da17bd4aad8784f188707b348e..1ea490309ff45b2146d3e6b22b0317d6b222508e 100644 (file)
@@ -45,9 +45,12 @@ type Node struct {
        Sendmail       []string
        Incoming       *string
        Freq           *string
+       FreqChunked    int64
+       FreqMinSize    int64
        Via            []*NodeId
        Addrs          map[string]string
-       OnlineDeadline int
+       OnlineDeadline uint
+       MaxOnlineTime  uint
        Calls          []*Call
 
        Busy bool
@@ -67,9 +70,10 @@ type NodeOur struct {
 type Call struct {
        Cron           *cronexpr.Expression
        Nice           uint8
-       Xx             *TRxTx
+       Xx             TRxTx
        Addr           *string
-       OnlineDeadline int
+       OnlineDeadline uint
+       MaxOnlineTime  uint
 }
 
 func NewNodeGenerate() (*NodeOur, error) {