re-licenced libbitdht to AGPLv3+

This commit is contained in:
csoler 2018-05-21 18:23:52 +02:00
parent ea76e57767
commit 8b8eb6b597
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
56 changed files with 1216 additions and 1188 deletions

View File

@ -1,3 +1,21 @@
################################################################################
# Retroshare.pro #
# Copyright (C) 2018, Retroshare team <retroshare.team@gmailcom> #
# #
# 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/>. #
################################################################################
!include("retroshare.pri"): error("Could not include file retroshare.pri") !include("retroshare.pri"): error("Could not include file retroshare.pri")
TEMPLATE = subdirs TEMPLATE = subdirs

View File

@ -65,68 +65,73 @@ Uploading-to-mentors bug:
Licensing issues: Licensing issues:
Various licenses involved: Various licenses involved:
Code part | Licenses | Authors | Comment R: re-licence to GPLv3
--------------------------------+--------------------------+----------------------------------------------+------------------------------------------------- D: delete
libbitdht | GPLv3 | drbob, csoler, Retroshare team |
bitdht/bencode.h | Public domain | Mike Frysinger <vapier@gmail.com> | Code part | Licenses |A| Authors | Comment
bitdht/bdrandom.h | GPLv2 | csoler | --------------------------------+------------------------+-+----------------------------------------------+-------------------------------------------------
--------------------------------+--------------------------+----------------------------------------------+------------------------------------------------- libbitdht | GPLv3 | | drbob, csoler, Retroshare team |
libresapi | GPLv3 | G10H4ck, [], electron128 | Most files are unlicenced bitdht/bencode.h | Public domain | | Mike Frysinger <vapier@gmail.com> |
libretroshare | GPLv2,GPLv3 | csoler,drbob,Mr-alice,Chris,Thunder | Some files unversionned. bitdht/bdrandom.h | GPLv2 |R| csoler |
plugins/dlfcn_win32.cc | GPLv2.1 | Ramiro Polla | --------------------------------+------------------------+-+----------------------------------------------+-------------------------------------------------
pqi/authgpg.h | GPLv2 | Raghu Dev R. | .cc is authed by drbob libresapi | GPLv3 | | G10H4ck, [], electron128 | Most files are unlicenced
upnp/UPnPBase.h | GPLv2 | Marcelo Roberto Jimenez, aMule Team | other code in upnp/ not copyrighted libretroshare | GPLv2,GPLv3 | | csoler,drbob,Mr-alice,Chris,Thunder | Some files unversionned.
util/pugiconfig.h | MIT | Arseny Kapoulkyne | [unused file!] plugins/dlfcn_win32.cc | GPLv2.1 |R| Ramiro Polla |
util/rsstring.h | GPLv2 | Thomas Kister | pqi/authgpg.h | GPLv2 |R| Raghu Dev R. | .cc is authed by drbob
util/rswin.h | GPLv2 | Thomas Kister | upnp/UPnPBase.h | GPLv2 | | Marcelo Roberto Jimenez, aMule Team | other code in upnp/ not copyrighted
util/rsversioninfo.h | [none] | Alexandrut | util/pugiconfig.h | MIT | | Arseny Kapoulkyne | [unused file!]
util/stacktrace.h | GPLv2 | Timo Bingmann, G10H4ck | util/rsstring.h | GPLv2 |R| Thomas Kister |
librssimulator | [None] | No authors | util/rswin.h | GPLv2 |R| Thomas Kister |
openpgpsdk | Apache | Rachell Wilmer, Ben Laurie | util/rsversioninfo.h | [none] | | Alexandrut |
pegmarkdown | All right reserved | Daniel Jalkut - Code currently unused | util/stacktrace.h | GPLv2 |R| Timo Bingmann, G10H4ck |
plugins/feedreader | GPLv2 | Thunder | librssimulator | [None] | | No authors |
plugins/VOIP | | | openpgpsdk | Apache | | Rachell Wilmer, Ben Laurie |
AudioInputConfig.h+ | All right reserved | Thorvald Natvig | Code can be modified/re-used. Mumble's code. pegmarkdown | All right reserved | | Daniel Jalkut - Code currently unused |
SpeezProcessor.h | | Peter Zotov | plugins/feedreader | GPLv2 | | Thunder |
retroshare-android-notify-* | GPLv3 | G10H4ck | plugins/VOIP | | | |
retroshare-android-service | GPLv3 | G10H4ck | AudioInputConfig.h+ | All right reserved | | Thorvald Natvig | Code can be modified/re-used. Mumble's code.
retroshare-gui/src | | Thunder, csoler, drbob, crypton | SpeezProcessor.h | | | Peter Zotov |
control/* | GPLv2 | Matt Edman, crypton, Justin Hiple | [Unused code] retroshare-android-notify-* | GPLv3 | | G10H4ck |
common/ElideLabel.h | BSD | Qt Toolkit | retroshare-android-service | GPLv3 | | G10H4ck |
common/FlowLayout.h | BSD | Qt Toolkit | Is that really Qt code?? Qt examples can be used. retroshare-gui/src | | | Thunder, csoler, drbob, crypton |
common/html.h | GPLv2 | Matt Edman, defnax, Justin Hiple | control/* | GPLv2 | | Matt Edman, crypton, Justin Hiple | [Unused code]
common/rwindow.h | GPLv2 | Matt Edman, defnax, Justin Hiple | common/ElideLabel.h | BSD | | Qt Toolkit |
common/vmessagebox.h | GPLv2 | Matt Edman, defnax, Justin Hiple | common/FlowLayout.h | BSD | | Qt Toolkit | Is that really Qt code?? Qt examples can be used.
common/PictureFlow | unclear | Ariya Hidayat (@kde.org) | [Unused code] common/html.h | GPLv2 | | Matt Edman, defnax, Justin Hiple |
elastic/* | LGPL | Trolltech | common/rwindow.h | GPLv2 | | Matt Edman, defnax, Justin Hiple |
FileTransfer/FTIWidget | GPLv2 | defnax, lsn752 | common/vmessagebox.h | GPLv2 | | Matt Edman, defnax, Justin Hiple |
FileTransfer/xprogressb | GPLv2 | Xesc | common/PictureFlow | unclear | | Ariya Hidayat (@kde.org) | [Unused code]
help/browser.h | GPLv2 | Matt Edman, defnax, Justin Hiple | elastic/* | LGPL | | Trolltech |
images/retroshare_win.rc.h | GPLv2 | crypton | [Unused code] FileTransfer/FTIWidget | GPLv2 | | defnax, lsn752 |
msgs/textformat.h | GPLv3 | Merdhah Momeny, Golnaz Nilieh | very simple .h. Can be re-implemented FileTransfer/xprogressb | GPLv2 | | Xesc |
settings/rsettings.h | GPLv2 | Matt Edman, defnax, Justin Hiple | help/browser.h | GPLv2 | | Matt Edman, defnax, Justin Hiple |
statistics/BandwidthGraphW.h| GPLv2 | Matt Edman, defnax, Justin Hiple | images/retroshare_win.rc.h | GPLv2 | | crypton | [Unused code]
statistics/dhtgraph.h | GPLv2 | Matt Edman, defnax, Justin Hiple | msgs/textformat.h | GPLv3 | | Merdhah Momeny, Golnaz Nilieh | very simple .h. Can be re-implemented
toaster/MessageToaster.h | GPLv3 | Xesc | settings/rsettings.h | GPLv2 | | Matt Edman, defnax, Justin Hiple |
toaster/DownloadToaster.h | GPLv3 | Xesc | statistics/BandwidthGraphW.h| GPLv2 | | Matt Edman, defnax, Justin Hiple |
About{Widget,Dialog}.h | GPLv2 | Unipro, Russia | Very small file. statistics/dhtgraph.h | GPLv2 | | Matt Edman, defnax, Justin Hiple |
linetypes.h | GPLv2 | Merdhah Momeny, Golnaz Nilieh | very simple .h. Can be re-implemented toaster/MessageToaster.h | GPLv3 | | Xesc |
mainpagestack.h | GPLv2 | Matt Edman, crypton, Justin Hiple | toaster/DownloadToaster.h | GPLv3 | | Xesc |
land/langagesupport.h | GPLv2 | Matt Edman, crypton, Justin Hiple | About{Widget,Dialog}.h | GPLv2 | | Unipro, Russia | Very small file.
util/log.h | GPLv2 | Matt Edman, crypton, Justin Hiple | linetypes.h | GPLv2 | | Merdhah Momeny, Golnaz Nilieh | very simple .h. Can be re-implemented
idle/idle.h | GPLv2 | Justin Karneges | May be re-implemented mainpagestack.h | GPLv2 | | Matt Edman, crypton, Justin Hiple |
TorControl/* |* Public domaine | John Brooks | Code from Ricochet.im land/langagesupport.h | GPLv2 | | Matt Edman, crypton, Justin Hiple |
util/HandleRichText.h | GPLv2 | Thomas Kister | util/log.h | GPLv2 | | Matt Edman, crypton, Justin Hiple |
util/misc.h | GPLv2 | defnax, Christophe Dumez | idle/idle.h | GPLv2 | | Justin Karneges | May be re-implemented
util/printpreview.h | GPLv2 | Trolltech example | TorControl/* |* Public domaine | | John Brooks | Code from Ricochet.im
util/retrosharewin32.h | GPLv2 | Matt Edman, crypton, Justin Hiple | util/HandleRichText.h | GPLv2 | | Thomas Kister |
util/stringutil.h | GPLv2 | Matt Edman, crypton, Justin Hiple | util/misc.h | GPLv2 | | defnax, Christophe Dumez |
rshare.h | GPLv2 | Matt Edman, crypton, Justin Hiple | util/printpreview.h | GPLv2 | | Trolltech example |
retroshare-nogui/* | GPLv2 | drbob | util/retrosharewin32.h | GPLv2 | | Matt Edman, crypton, Justin Hiple |
util/stringutil.h | GPLv2 | | Matt Edman, crypton, Justin Hiple |
rshare.h | GPLv2 | | Matt Edman, crypton, Justin Hiple |
retroshare-nogui/* | GPLv2 | | drbob |
Plan: move to GPLv3 with OpenSSL exception Plan: move to GPLv3 with OpenSSL exception
- Appache is compatible with GPLv3
Many files unversionned. Many files unversionned.
Use a pointer to the top level licence file Use a pointer to the top level licence file

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* bitdht/bdaccount.cc * bitdht/bdaccount.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2011 by Robert Fernie * Copyright 2011 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdaccount.h" #include "bitdht/bdaccount.h"

View File

@ -1,30 +1,27 @@
#ifndef BITDHT_ACCOUNT_H #ifndef BITDHT_ACCOUNT_H
#define BITDHT_ACCOUNT_H #define BITDHT_ACCOUNT_H
/* /*******************************************************************************
* bitdht/bdaccount.h * bitdht/bdaccount.h *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2011 by Robert Fernie * Copyright 2011 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* bitdht/bdconnection.cc * bitdht/bdconnection.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2011 by Robert Fernie * Copyright 2011 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include <algorithm> #include <algorithm>
#include "bitdht/bdiface.h" #include "bitdht/bdiface.h"

View File

@ -1,32 +1,28 @@
/*******************************************************************************
* bitdht/bdconnection.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2011 by Robert Fernie <bitdht@lunamutt.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 BITDHT_CONNECTION_H #ifndef BITDHT_CONNECTION_H
#define BITDHT_CONNECTION_H #define BITDHT_CONNECTION_H
/*
* bitdht/bdconnection.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2011 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdiface.h" #include "bitdht/bdiface.h"
class bdQueryManager; class bdQueryManager;

View File

@ -1,29 +1,24 @@
/*******************************************************************************
/* * bitdht/bdfilter.cc *
* bitdht/bdfilter.cc * *
* * BitDHT: An Flexible DHT library. *
* BitDHT: An Flexible DHT library. * *
* * Copyright 2010 by Robert Fernie <bitdht@lunamutt.com> *
* Copyright 2010 by Robert Fernie * *
* * This program is free software: you can redistribute it and/or modify *
* This library is free software; you can redistribute it and/or * it under the terms of the GNU Affero General Public License as *
* modify it under the terms of the GNU Library General Public * published by the Free Software Foundation, either version 3 of the *
* License Version 3 as published by the Free Software Foundation. * License, or (at your option) any later version. *
* * *
* This library is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* Library General Public License for more details. * GNU Affero General Public License for more details. *
* * *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Affero General Public License *
* License along with this library; if not, write to the Free Software * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * *
* USA. *******************************************************************************/
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdfilter.h" #include "bitdht/bdfilter.h"
#include "bitdht/bdmanager.h" #include "bitdht/bdmanager.h"

View File

@ -1,36 +1,28 @@
/*******************************************************************************
* bitdht/bdfilter.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2010 by Robert Fernie <bitdht@lunamutt.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 BITDHT_FILTER_H #ifndef BITDHT_FILTER_H
#define BITDHT_FILTER_H #define BITDHT_FILTER_H
/*
* bitdht/bdfilter.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
/* This class is used to detect bad and filter them peers
*
*/
#include "bitdht/bdiface.h" #include "bitdht/bdiface.h"
#include <set> #include <set>

View File

@ -1,28 +1,24 @@
/*******************************************************************************
/* * bitdht/bdfriendlist.cc *
* bitdht/bdfriendlist.cc * *
* * BitDHT: An Flexible DHT library. *
* BitDHT: An Flexible DHT library. * *
* * Copyright 2010 by Robert Fernie <bitdht@lunamutt.com> *
* Copyright 2011 by Robert Fernie * *
* * This program is free software: you can redistribute it and/or modify *
* This library is free software; you can redistribute it and/or * it under the terms of the GNU Affero General Public License as *
* modify it under the terms of the GNU Library General Public * published by the Free Software Foundation, either version 3 of the *
* License Version 3 as published by the Free Software Foundation. * License, or (at your option) any later version. *
* * *
* This library is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* Library General Public License for more details. * GNU Affero General Public License for more details. *
* * *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Affero General Public License *
* License along with this library; if not, write to the Free Software * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * *
* USA. *******************************************************************************/
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdfriendlist.h" #include "bitdht/bdfriendlist.h"
#include "bitdht/bdstddht.h" #include "bitdht/bdstddht.h"

View File

@ -1,31 +1,28 @@
/*******************************************************************************
* bitdht/bdfriendlist.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2010 by Robert Fernie <bitdht@lunamutt.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 BITDHT_FRIEND_LIST_H #ifndef BITDHT_FRIEND_LIST_H
#define BITDHT_FRIEND_LIST_H #define BITDHT_FRIEND_LIST_H
/*
* bitdht/bdfriendlist.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2011 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
/* /*
* This class maintains a list of current friends and friends-of-friends. * This class maintains a list of current friends and friends-of-friends.
* It should also be updated when a peer's address has been identified. * It should also be updated when a peer's address has been identified.

View File

@ -1,28 +1,24 @@
/* /*******************************************************************************
* bitdht/bdhash.cc * bitdht/bdhash.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2010 by Robert Fernie * Copyright 2010 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdhash.h" #include "bitdht/bdhash.h"
#include "bitdht/bdstddht.h" #include "bitdht/bdstddht.h"

View File

@ -1,31 +1,28 @@
/*******************************************************************************
* bitdht/bdhash.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2010 by Robert Fernie <bitdht@lunamutt.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 BITDHT_HASH_SPACE_H #ifndef BITDHT_HASH_SPACE_H
#define BITDHT_HASH_SPACE_H #define BITDHT_HASH_SPACE_H
/*
* bitdht/bdhash.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdpeer.h" #include "bitdht/bdpeer.h"
#include <list> #include <list>

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* bitdht/bdhistory.cc *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2010 by Robert Fernie <bitdht@lunamutt.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/>. *
* *
*******************************************************************************/
#include "bitdht/bdhistory.h" #include "bitdht/bdhistory.h"

View File

@ -1,3 +1,25 @@
/*******************************************************************************
* bitdht/bdhistory.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2010 by Robert Fernie <bitdht@lunamutt.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 BITDHT_HISTORY_H #ifndef BITDHT_HISTORY_H
#define BITDHT_HISTORY_H #define BITDHT_HISTORY_H

View File

@ -1,31 +1,27 @@
/*******************************************************************************
* bitdht/bdiface.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2010 by Robert Fernie <bitdht@lunamutt.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 BIT_DHT_INTERFACE_H #ifndef BIT_DHT_INTERFACE_H
#define BIT_DHT_INTERFACE_H #define BIT_DHT_INTERFACE_H
/*
* bitdht/bdiface.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include <iosfwd> #include <iosfwd>
#include <map> #include <map>
#include <string> #include <string>

View File

@ -1,28 +1,24 @@
/* /*******************************************************************************
* bitdht/bdmanager.cc * bitdht/bdmanager.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2010 by Robert Fernie * Copyright 2010 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
/******* /*******
* Node Manager. * Node Manager.

View File

@ -1,33 +1,27 @@
/*******************************************************************************
* bitdht/bdmanager.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2010 by Robert Fernie <bitdht@lunamutt.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 BITDHT_MANAGER_H #ifndef BITDHT_MANAGER_H
#define BITDHT_MANAGER_H #define BITDHT_MANAGER_H
/*
* bitdht/bdmanager.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
/******* /*******
* Node Manager. * Node Manager.
******/ ******/

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* bitdht/bdmsgs.cc * bitdht/bdmsgs.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2010 by Robert Fernie * Copyright 2010 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>

View File

@ -1,32 +1,27 @@
/*******************************************************************************
* bitdht/bdmsgs.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2010 by Robert Fernie <bitdht@lunamutt.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 BITDHT_MSGS_H #ifndef BITDHT_MSGS_H
#define BITDHT_MSGS_H #define BITDHT_MSGS_H
/*
* bitdht/bdmsgs.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include <stdio.h> #include <stdio.h>
#include <inttypes.h> #include <inttypes.h>
#include <list> #include <list>

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* bitdht/bdnode.cc * bitdht/bdnode.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2010-2011 by Robert Fernie * Copyright 2010 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdnode.h" #include "bitdht/bdnode.h"

View File

@ -1,32 +1,27 @@
/*******************************************************************************
* bitdht/bdnode.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2010 by Robert Fernie <bitdht@lunamutt.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 BITDHT_NODE_H #ifndef BITDHT_NODE_H
#define BITDHT_NODE_H #define BITDHT_NODE_H
/*
* bitdht/bdnode.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdpeer.h" #include "bitdht/bdpeer.h"
#include "bitdht/bdquery.h" #include "bitdht/bdquery.h"
#include "bitdht/bdstore.h" #include "bitdht/bdstore.h"

View File

@ -1,28 +1,24 @@
/*******************************************************************************
/* * bitdht/bdobj.cc *
* bitdht/bdobj.cc * *
* * BitDHT: An Flexible DHT library. *
* BitDHT: An Flexible DHT library. * *
* * Copyright 2010 by Robert Fernie <bitdht@lunamutt.com> *
* Copyright 2010 by Robert Fernie * *
* * This program is free software: you can redistribute it and/or modify *
* This library is free software; you can redistribute it and/or * it under the terms of the GNU Affero General Public License as *
* modify it under the terms of the GNU Library General Public * published by the Free Software Foundation, either version 3 of the *
* License Version 3 as published by the Free Software Foundation. * License, or (at your option) any later version. *
* * *
* This library is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* Library General Public License for more details. * GNU Affero General Public License for more details. *
* * *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Affero General Public License *
* License along with this library; if not, write to the Free Software * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * *
* USA. *******************************************************************************/
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdobj.h" #include "bitdht/bdobj.h"

View File

@ -1,32 +1,27 @@
/*******************************************************************************
* bitdht/bdobj.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2010 by Robert Fernie <bitdht@lunamutt.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 BITDHT_OBJECTS_H #ifndef BITDHT_OBJECTS_H
#define BITDHT_OBJECTS_H #define BITDHT_OBJECTS_H
/*
* bitdht/bdobj.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#define BITDHT_TOKEN_MAX_LEN 20 #define BITDHT_TOKEN_MAX_LEN 20
#include <iostream> #include <iostream>

View File

@ -1,28 +1,24 @@
/* /*******************************************************************************
* bitdht/bdpeer.cc * bitdht/bdpeer.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2010 by Robert Fernie * Copyright 2010 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdpeer.h" #include "bitdht/bdpeer.h"
#include "util/bdnet.h" #include "util/bdnet.h"

View File

@ -1,31 +1,27 @@
/*******************************************************************************
* bitdht/bdpeer.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2010 by Robert Fernie <bitdht@lunamutt.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 BITDHT_PEER_H #ifndef BITDHT_PEER_H
#define BITDHT_PEER_H #define BITDHT_PEER_H
/*
* bitdht/bdpeer.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdiface.h" #include "bitdht/bdiface.h"
#include <time.h> #include <time.h>

View File

@ -1,29 +1,24 @@
/*******************************************************************************
/* * bitdht/bdquery.cc *
* bitdht/bdquery.cc * *
* * BitDHT: An Flexible DHT library. *
* BitDHT: An Flexible DHT library. * *
* * Copyright 2010 by Robert Fernie <bitdht@lunamutt.com> *
* Copyright 2010 by Robert Fernie * *
* * This program is free software: you can redistribute it and/or modify *
* This library is free software; you can redistribute it and/or * it under the terms of the GNU Affero General Public License as *
* modify it under the terms of the GNU Library General Public * published by the Free Software Foundation, either version 3 of the *
* License Version 3 as published by the Free Software Foundation. * License, or (at your option) any later version. *
* * *
* This library is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* Library General Public License for more details. * GNU Affero General Public License for more details. *
* * *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Affero General Public License *
* License along with this library; if not, write to the Free Software * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * *
* USA. *******************************************************************************/
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdquery.h" #include "bitdht/bdquery.h"
#include "bitdht/bdstddht.h" #include "bitdht/bdstddht.h"

View File

@ -1,32 +1,27 @@
/*******************************************************************************
* bitdht/bdquery.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2010 by Robert Fernie <bitdht@lunamutt.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 BITDHT_QUERY_H #ifndef BITDHT_QUERY_H
#define BITDHT_QUERY_H #define BITDHT_QUERY_H
/*
* bitdht/bdquery.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdiface.h" #include "bitdht/bdiface.h"
#include "bitdht/bdpeer.h" #include "bitdht/bdpeer.h"
#include "bitdht/bdobj.h" #include "bitdht/bdobj.h"

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* bitdht/bdnode.cc * bitdht/bdquerymgr.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2010 by Robert Fernie * Copyright 2011 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdquerymgr.h" #include "bitdht/bdquerymgr.h"
#include "bitdht/bdnode.h" #include "bitdht/bdnode.h"

View File

@ -1,32 +1,27 @@
/*******************************************************************************
* bitdht/bdquerymgr.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2011 by Robert Fernie <bitdht@lunamutt.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 BITDHT_QUERY_MANAGER_H #ifndef BITDHT_QUERY_MANAGER_H
#define BITDHT_QUERY_MANAGER_H #define BITDHT_QUERY_MANAGER_H
/*
* bitdht/bdquerymgr.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2011 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdquery.h" #include "bitdht/bdquery.h"
class bdNodePublisher; class bdNodePublisher;

View File

@ -1,28 +1,24 @@
/* /*******************************************************************************
* bitdht/bdstddht.cc * bitdht/bdstddht.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2010 by Robert Fernie * Copyright 2011 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdstddht.h" #include "bitdht/bdstddht.h"
#include "bitdht/bdpeer.h" #include "bitdht/bdpeer.h"

View File

@ -1,32 +1,27 @@
/*******************************************************************************
* bitdht/bdstddht.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2011 by Robert Fernie <bitdht@lunamutt.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 BITDHT_STANDARD_DHT_H #ifndef BITDHT_STANDARD_DHT_H
#define BITDHT_STANDARD_DHT_H #define BITDHT_STANDARD_DHT_H
/*
* bitdht/bdstddht.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdiface.h" #include "bitdht/bdiface.h"
#define BITDHT_STANDARD_BUCKET_SIZE 10 // 20 too many per query? #define BITDHT_STANDARD_BUCKET_SIZE 10 // 20 too many per query?

View File

@ -1,28 +1,24 @@
/* /*******************************************************************************
* bitdht/bdstore.cc * bitdht/bdstore.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2010 by Robert Fernie * Copyright 2011 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bitdht/bdstore.h" #include "bitdht/bdstore.h"
#include "util/bdnet.h" #include "util/bdnet.h"

View File

@ -1,32 +1,27 @@
/*******************************************************************************
* bitdht/bdstore.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2011 by Robert Fernie <bitdht@lunamutt.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 BITDHT_STORE_H #ifndef BITDHT_STORE_H
#define BITDHT_STORE_H #define BITDHT_STORE_H
/*
* bitdht/bdstore.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include <string> #include <string>
#include "bitdht/bdiface.h" #include "bitdht/bdiface.h"
#include "bitdht/bdpeer.h" #include "bitdht/bdpeer.h"

View File

@ -1,16 +1,25 @@
/* /*******************************************************************************
* C implementation of a bencode decoder. * bitdht/bdencode.cc *
* This is the format defined by BitTorrent: * *
* http://wiki.theory.org/BitTorrentSpecification#bencoding * BitDHT: An Flexible DHT library. *
* * *
* The only external requirements are a few [standard] function calls and * Copyright 2011 by Robert Fernie <bitdht@lunamutt.com> *
* the long long type. Any sane system should provide all of these things. * by Mike Frysinger <vapier@gmail.com> *
* * *
* See the bencode.h header file for usage information. * This program is free software: you can redistribute it and/or modify *
* * it under the terms of the GNU Affero General Public License as *
* This is released into the public domain. * published by the Free Software Foundation, either version 3 of the *
* Written by Mike Frysinger <vapier@gmail.com>. * 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/>. *
* *
*******************************************************************************/
/* /*
* This implementation isn't optimized at all as I wrote it to support * This implementation isn't optimized at all as I wrote it to support

View File

@ -1,14 +1,27 @@
/* /*******************************************************************************
* C implementation of a bencode decoder. * bitdht/bdencode.h *
* This is the format defined by BitTorrent: * *
* http://wiki.theory.org/BitTorrentSpecification#bencoding * BitDHT: An Flexible DHT library. *
* * *
* The only external requirements are a few [standard] function calls and * Copyright 2011 by Robert Fernie <bitdht@lunamutt.com> *
* the long long type. Any sane system should provide all of these things. * by Mike Frysinger <vapier@gmail.com> *
* * *
* This is released into the public domain. * This program is free software: you can redistribute it and/or modify *
* Written by Mike Frysinger <vapier@gmail.com>. * 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: /* USAGE:
* - pass the string full of the bencoded data to be_decode() * - pass the string full of the bencoded data to be_decode()
@ -16,9 +29,6 @@
* - call be_free() on the tree to release resources * - call be_free() on the tree to release resources
*/ */
#ifndef _BENCODE_H
#define _BENCODE_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -1,3 +1,21 @@
################################################################################
# libbitdht.pro #
# Copyright (C) 2018, Retroshare team <retroshare.team@gmailcom> #
# #
# 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/>. #
################################################################################
!include("../../retroshare.pri"): error("Could not include file ../../retroshare.pri") !include("../../retroshare.pri"): error("Could not include file ../../retroshare.pri")
TEMPLATE = lib TEMPLATE = lib

View File

@ -1,28 +1,24 @@
/* /*******************************************************************************
* bitdht/udpbitdht.cc * bitdht/udpbitdht.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2010 by Robert Fernie * Copyright 2011 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "udp/udpbitdht.h" #include "udp/udpbitdht.h"
#include "bitdht/bdpeer.h" #include "bitdht/bdpeer.h"

View File

@ -1,32 +1,27 @@
/*******************************************************************************
* udp/udpbitdht.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2011 by Robert Fernie <bitdht@lunamutt.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 UDP_BIT_DHT_CLASS_H #ifndef UDP_BIT_DHT_CLASS_H
#define UDP_BIT_DHT_CLASS_H #define UDP_BIT_DHT_CLASS_H
/*
* bitdht/udpbitdht.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include <iosfwd> #include <iosfwd>
#include <map> #include <map>
#include <string> #include <string>

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* udp/udplayer.cc * udp/udplayer.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2004-2010 by Robert Fernie * Copyright 2004-2010 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "udp/udplayer.h" #include "udp/udplayer.h"
#include "util/bdrandom.h" #include "util/bdrandom.h"

View File

@ -1,31 +1,27 @@
/*******************************************************************************
* udp/udplayer.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2004-2010 by Robert Fernie <bitdht@lunamutt.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 BITDHT_UDP_LAYER_H #ifndef BITDHT_UDP_LAYER_H
#define BITDHT_UDP_LAYER_H #define BITDHT_UDP_LAYER_H
/*
* udp/udplayer.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2004-2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "util/bdthreads.h" #include "util/bdthreads.h"
#include "util/bdnet.h" #include "util/bdnet.h"

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* udp/udpstack.cc * udp/udpstack.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2010 by Robert Fernie * Copyright 2011 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "udp/udpstack.h" #include "udp/udpstack.h"

View File

@ -1,32 +1,27 @@
/*******************************************************************************
* udp/udpstack.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2011 by Robert Fernie <bitdht@lunamutt.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 BITDHT_UDP_STACK_RECEIVER_H #ifndef BITDHT_UDP_STACK_RECEIVER_H
#define BITDHT_UDP_STACK_RECEIVER_H #define BITDHT_UDP_STACK_RECEIVER_H
/*
* udp/udpstack.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "util/bdthreads.h" #include "util/bdthreads.h"
#include "util/bdnet.h" #include "util/bdnet.h"

View File

@ -1,3 +1,21 @@
################################################################################
# use_libbitdht.pri #
# Copyright (C) 2018, Retroshare team <retroshare.team@gmailcom> #
# #
# 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/>. #
################################################################################
DEPENDPATH *= $$system_path($$clean_path($${PWD}/../../libbitdht/src)) DEPENDPATH *= $$system_path($$clean_path($${PWD}/../../libbitdht/src))
INCLUDEPATH *= $$system_path($$clean_path($${PWD}/../../libbitdht/src)) INCLUDEPATH *= $$system_path($$clean_path($${PWD}/../../libbitdht/src))
LIBS *= -L$$system_path($$clean_path($${OUT_PWD}/../../libbitdht/src/lib/)) -lbitdht LIBS *= -L$$system_path($$clean_path($${OUT_PWD}/../../libbitdht/src/lib/)) -lbitdht

View File

@ -1,27 +1,24 @@
/* /*******************************************************************************
* bitdht/bdbloom.cc * util/bdbloom.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2011 by Robert Fernie * Copyright 2011 by Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "util/bdbloom.h" #include "util/bdbloom.h"
#include "util/bdstring.h" #include "util/bdstring.h"

View File

@ -1,32 +1,27 @@
/*******************************************************************************
* util/bdbloom.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2011 by Robert Fernie <bitdht@lunamutt.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 BITDHT_BLOOM_H #ifndef BITDHT_BLOOM_H
#define BITDHT_BLOOM_H #define BITDHT_BLOOM_H
/*
* bitdht/bdbloom.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2011 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include <vector> #include <vector>
#include <string> #include <string>

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* util/bdfile.cc *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2011 by Robert Fernie <bitdht@lunamutt.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/>. *
* *
*******************************************************************************/
#ifdef WIN32 #ifdef WIN32
#include <windows.h> #include <windows.h>
#endif #endif

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* util/bdfile.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2011 by Robert Fernie <bitdht@lunamutt.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/>. *
* *
*******************************************************************************/
#pragma once #pragma once
#include <string> #include <string>

View File

@ -1,28 +1,24 @@
/*******************************************************************************
/* * util/bdnet.cc *
* util/bdnet.cc * *
* * BitDHT: An Flexible DHT library. *
* BitDHT: An Flexible DHT library. * *
* * Copyright 2010 by Robert Fernie <bitdht@lunamutt.com> *
* Copyright 2010 by Robert Fernie * *
* * This program is free software: you can redistribute it and/or modify *
* This library is free software; you can redistribute it and/or * it under the terms of the GNU Affero General Public License as *
* modify it under the terms of the GNU Library General Public * published by the Free Software Foundation, either version 3 of the *
* License Version 3 as published by the Free Software Foundation. * License, or (at your option) any later version. *
* * *
* This library is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* Library General Public License for more details. * GNU Affero General Public License for more details. *
* * *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Affero General Public License *
* License along with this library; if not, write to the Free Software * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * *
* USA. *******************************************************************************/
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bdnet.h" #include "bdnet.h"
#include "bdstring.h" #include "bdstring.h"

View File

@ -1,30 +1,26 @@
/*******************************************************************************
* util/bdnet.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright 2010 by Robert Fernie <bitdht@lunamutt.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 BITDHT_UNIVERSAL_NETWORK_HEADER #ifndef BITDHT_UNIVERSAL_NETWORK_HEADER
#define BITDHT_UNIVERSAL_NETWORK_HEADER #define BITDHT_UNIVERSAL_NETWORK_HEADER
/*
*
* util/bdnet.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2004-2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include <inttypes.h> #include <inttypes.h>
#include <string> #include <string>

View File

@ -1,3 +1,24 @@
/*******************************************************************************
* util/bdrandom.cc *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright (C) 2010 Cyril Soler <csoler@users.sourceforge.net> *
* *
* 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/>. *
* *
*******************************************************************************/
#include <stdlib.h> #include <stdlib.h>
#include <string> #include <string>
#include <unistd.h> #include <unistd.h>

View File

@ -1,39 +1,37 @@
/*******************************************************************************
* util/bdrandom.h *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright (C) 2010 Cyril Soler <csoler@users.sourceforge.net> *
* *
* 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 BITDHT_UTILS_BDRANDOM_H #ifndef BITDHT_UTILS_BDRANDOM_H
#define BITDHT_UTILS_BDRANDOM_H #define BITDHT_UTILS_BDRANDOM_H
/****************************************************************
* libbitdht is distributed under the following license:
*
* Copyright (C) 2010 Cyril Soler <csoler@users.sourceforge.net>
*
* 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 the Free Software Foundation; either version 2
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
****************************************************************/
/* This Source Code is basically a direct copy of libretroshare's RsRandom. /* This Source Code is basically a direct copy of libretroshare's RsRandom.
* the function names have just been renamed. drbob * the function names have just been renamed. drbob
*/ */
// bdRandom contains a random number generator that is // bdRandom contains a random number generator that is
// - thread safe // - thread safe
// - system independant // - system independant
// - fast // - fast
// - NOT CRYPTOGRAPHICALLY SAFE // - NOT CRYPTOGRAPHICALLY SAFE
// - DO NOT USE FOR ANYTHING REQUIRING STRONG RANDOMNESS // - DO NOT USE FOR ANYTHING REQUIRING STRONG UNPREDICTABLE RANDOMNESS
// //
// The implementation is adapted from the Mersenne Twister page of Wikipedia. // The implementation is adapted from the Mersenne Twister page of Wikipedia.
// //

View File

@ -1,23 +1,24 @@
/**************************************************************** /*******************************************************************************
* This file is distributed under the following license: * util/bdstring.h *
* * *
* Copyright (c) 2012, RetroShare Team * BitDHT: An Flexible DHT library. *
* * *
* This program is free software; you can redistribute it and/or * Copyright (C) 2010 Retroshare Team <retroshare.team@gmail.com> *
* modify it under the terms of the GNU General Public License * *
* as published by the Free Software Foundation; either version 2 * This program is free software: you can redistribute it and/or modify *
* of the License, or (at your option) any later version. * it under the terms of the GNU Affero General Public License as *
* * published by the Free Software Foundation, either version 3 of the *
* This program is distributed in the hope that it will be useful, * License, or (at your option) any later version. *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * This program is distributed in the hope that it will be useful, *
* GNU General Public License for more details. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* You should have received a copy of the GNU General Public License * GNU Affero General Public License for more details. *
* along with this program; if not, write to the Free Software * *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, * You should have received a copy of the GNU Affero General Public License *
* Boston, MA 02110-1301, USA. * along with this program. If not, see <https://www.gnu.org/licenses/>. *
****************************************************************/ * *
*******************************************************************************/
#include "bdstring.h" #include "bdstring.h"

View File

@ -1,27 +1,27 @@
/*******************************************************************************
* util/bdstring.cc *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright (C) 2010 Retroshare Team <retroshare.team@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 BITDHT_UTILS_BDSTRING_H #ifndef BITDHT_UTILS_BDSTRING_H
#define BITDHT_UTILS_BDSTRING_H #define BITDHT_UTILS_BDSTRING_H
/****************************************************************
* libbitdht is distributed under the following license:
*
* Copyright (C) 2012 RetroShare Team
*
* 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 the Free Software Foundation; either version 2
* 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
****************************************************************/
#ifdef WIN32 #ifdef WIN32
// for proper handling of %ll // for proper handling of %ll
#define bd_snprintf __mingw_snprintf #define bd_snprintf __mingw_snprintf

View File

@ -1,29 +1,24 @@
/* /*******************************************************************************
* util/bdthreads.cc * util/bdthread.cc *
* * *
* BitDHT: An Flexible DHT library. * BitDHT: An Flexible DHT library. *
* * *
* Copyright 2004-2010 by Robert Fernie * Copyright (C) 2004-2010 Robert Fernie <bitdht@lunamutt.com> *
* * *
* This library is free software; you can redistribute it and/or * This program is free software: you can redistribute it and/or modify *
* modify it under the terms of the GNU Library General Public * it under the terms of the GNU Affero General Public License as *
* License Version 3 as published by the Free Software Foundation. * published by the Free Software Foundation, either version 3 of the *
* * License, or (at your option) any later version. *
* This library is distributed in the hope that it will be useful, * *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful, *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* Library General Public License for more details. * 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 Library General Public * *
* License along with this library; if not, write to the Free Software * You should have received a copy of the GNU Affero General Public License *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * along with this program. If not, see <https://www.gnu.org/licenses/>. *
* USA. * *
* *******************************************************************************/
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include "bdthreads.h" #include "bdthreads.h"
#include <unistd.h> /* for usleep() */ #include <unistd.h> /* for usleep() */

View File

@ -1,32 +1,27 @@
/*******************************************************************************
* util/bdthread.cc *
* *
* BitDHT: An Flexible DHT library. *
* *
* Copyright (C) 2004-2010 Robert Fernie <bitdht@lunamutt.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 BITDHT_THREADS_H #ifndef BITDHT_THREADS_H
#define BITDHT_THREADS_H #define BITDHT_THREADS_H
/*
* util/bdthreads.h
*
* BitDHT: An Flexible DHT library.
*
* Copyright 2004-2010 by Robert Fernie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License Version 3 as published by the Free Software Foundation.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Please report all bugs and problems to "bitdht@lunamutt.com".
*
*/
#include <iostream> #include <iostream>
#include <pthread.h> #include <pthread.h>
#include <inttypes.h> #include <inttypes.h>

View File

@ -1,3 +1,21 @@
################################################################################
# retroshare.pri #
# Copyright (C) 2018, Retroshare team <retroshare.team@gmailcom> #
# #
# 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/>. #
################################################################################
################################################################################ ################################################################################
## Documented build options (CONFIG) goes here as all the rest depend on them ## ## Documented build options (CONFIG) goes here as all the rest depend on them ##
## CONFIG must not be edited in other .pro files, aka if CONFIG need do be ##### ## CONFIG must not be edited in other .pro files, aka if CONFIG need do be #####