mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-15 01:25:56 -04:00
re-licenced libbitdht to AGPLv3+
This commit is contained in:
parent
ea76e57767
commit
8b8eb6b597
56 changed files with 1216 additions and 1188 deletions
|
@ -1,14 +1,27 @@
|
|||
/*
|
||||
* C implementation of a bencode decoder.
|
||||
* This is the format defined by BitTorrent:
|
||||
* http://wiki.theory.org/BitTorrentSpecification#bencoding
|
||||
*
|
||||
* The only external requirements are a few [standard] function calls and
|
||||
* the long long type. Any sane system should provide all of these things.
|
||||
*
|
||||
* This is released into the public domain.
|
||||
* Written by Mike Frysinger <vapier@gmail.com>.
|
||||
*/
|
||||
/*******************************************************************************
|
||||
* bitdht/bdencode.h *
|
||||
* *
|
||||
* BitDHT: An Flexible DHT library. *
|
||||
* *
|
||||
* Copyright 2011 by Robert Fernie <bitdht@lunamutt.com> *
|
||||
* by Mike Frysinger <vapier@gmail.com> *
|
||||
* *
|
||||
* This program is free software: you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU Affero General Public License as *
|
||||
* published by the Free Software Foundation, either version 3 of the *
|
||||
* License, or (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU Affero General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU Affero General Public License *
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
||||
* *
|
||||
*******************************************************************************/
|
||||
#ifndef _BENCODE_H
|
||||
#define _BENCODE_H
|
||||
|
||||
/* USAGE:
|
||||
* - pass the string full of the bencoded data to be_decode()
|
||||
|
@ -16,9 +29,6 @@
|
|||
* - call be_free() on the tree to release resources
|
||||
*/
|
||||
|
||||
#ifndef _BENCODE_H
|
||||
#define _BENCODE_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue