]> Cypherpunks.ru repositories - nncp.git/blob - src/cypherpunks.ru/nncp/chunked.go
02b488b3a92d448788c13983871c7039df8af491
[nncp.git] / src / cypherpunks.ru / nncp / chunked.go
1 /*
2 NNCP -- Node to Node copy, utilities for store-and-forward data exchange
3 Copyright (C) 2016-2019 Sergey Matveev <stargrave@stargrave.org>
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 package nncp
20
21 var (
22         MagicNNCPMv1 [8]byte = [8]byte{'N', 'N', 'C', 'P', 'M', 0, 0, 1}
23
24         ChunkedSuffixMeta = ".nncp.meta"
25         ChunkedSuffixPart = ".nncp.chunk"
26 )
27
28 type ChunkedMeta struct {
29         Magic     [8]byte
30         FileSize  uint64
31         ChunkSize uint64
32         Checksums [][32]byte
33 }