mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Merge branch 'master' into jsonapi
This commit is contained in:
commit
130007b578
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +1,6 @@
|
|||||||
[submodule "supportlibs/restbed"]
|
[submodule "supportlibs/restbed"]
|
||||||
path = supportlibs/restbed
|
path = supportlibs/restbed
|
||||||
url = https://github.com/Corvusoft/restbed.git
|
url = https://github.com/Corvusoft/restbed.git
|
||||||
|
[submodule "cmark"]
|
||||||
|
path = supportlibs/cmark
|
||||||
|
url = https://github.com/commonmark/cmark.git
|
||||||
|
@ -13,10 +13,10 @@ matrix:
|
|||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get update; fi
|
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get update; fi
|
||||||
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install -y build-essential libssl-dev libsqlcipher-dev libbz2-dev libmicrohttpd-dev libsqlite3-dev libupnp-dev pkg-config qt5-default libxss-dev qtmultimedia5-dev libqt5x11extras5-dev libqt5designer5 qttools5-dev; fi
|
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install -y build-essential libssl-dev libsqlcipher-dev libbz2-dev libmicrohttpd-dev libsqlite3-dev libupnp-dev pkg-config qt5-default libxss-dev qtmultimedia5-dev libqt5x11extras5-dev libqt5designer5 libxapian-dev qttools5-dev; fi
|
||||||
|
|
||||||
- if [ $TRAVIS_OS_NAME == osx ]; then brew update ; fi
|
- if [ $TRAVIS_OS_NAME == osx ]; then brew update ; fi
|
||||||
- if [ $TRAVIS_OS_NAME == osx ]; then brew install qt55 openssl miniupnpc libmicrohttpd sqlcipher; fi
|
- if [ $TRAVIS_OS_NAME == osx ]; then brew install qt55 openssl miniupnpc libmicrohttpd sqlcipher xapian; fi
|
||||||
- if [ $TRAVIS_OS_NAME == osx ]; then brew link --force qt55 ; fi
|
- if [ $TRAVIS_OS_NAME == osx ]; then brew link --force qt55 ; fi
|
||||||
|
|
||||||
- wget https://github.com/Tencent/rapidjson/archive/v1.1.0.tar.gz
|
- wget https://github.com/Tencent/rapidjson/archive/v1.1.0.tar.gz
|
||||||
|
@ -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
|
||||||
|
@ -85,10 +85,11 @@ environment:
|
|||||||
# - cmd: echo This is batch again
|
# - cmd: echo This is batch again
|
||||||
# - cmd: set MY_VAR=12345
|
# - cmd: set MY_VAR=12345
|
||||||
install:
|
install:
|
||||||
|
- git submodule update --init
|
||||||
# Configuring MSys2
|
# Configuring MSys2
|
||||||
- set PATH=C:\msys64\usr\bin;%PATH%
|
- set PATH=C:\msys64\usr\bin;%PATH%
|
||||||
- set PATH=C:\msys64\mingw32\bin;%PATH%
|
- set PATH=C:\msys64\mingw32\bin;%PATH%
|
||||||
- pacman --noconfirm -S mingw-w64-i686-qt5 mingw-w64-i686-miniupnpc mingw-w64-i686-sqlcipher mingw-w64-i686-libmicrohttpd
|
- pacman --noconfirm -S mingw-w64-i686-qt5 mingw-w64-i686-miniupnpc mingw-w64-i686-sqlcipher mingw-w64-i686-libmicrohttpd mingw-w64-xapian-core
|
||||||
#- pacman --noconfirm -S mingw-w64-i686-qt5-static mingw-w64-i686-miniupnpc mingw-w64-i686-sqlcipher mingw-w64-i686-libmicrohttpd
|
#- pacman --noconfirm -S mingw-w64-i686-qt5-static mingw-w64-i686-miniupnpc mingw-w64-i686-sqlcipher mingw-w64-i686-libmicrohttpd
|
||||||
#- set PATH=C:\msys64\mingw32\qt5-static\bin\;%PATH%
|
#- set PATH=C:\msys64\mingw32\qt5-static\bin\;%PATH%
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Source: retroshare
|
Source: retroshare
|
||||||
Section: devel
|
Section: devel
|
||||||
Priority: standard
|
Priority: optional
|
||||||
Maintainer: Cyril Soler <csoler@users.sourceforge.net>
|
Maintainer: Cyril Soler <csoler@users.sourceforge.net>
|
||||||
Build-Depends: debhelper (>= 9), libglib2.0-dev, libupnp-dev, libssl-dev, libxss-dev, libgnome-keyring-dev, libbz2-dev, libspeex-dev, libspeexdsp-dev, libxslt1-dev, cmake, libcurl4-openssl-dev, libopencv-dev, tcl8.6, libsqlcipher-dev, libmicrohttpd-dev, libavcodec-dev, qtmultimedia5-dev, qttools5-dev, libqt5x11extras5-dev, qtbase5-dev, qt5-qmake, qtbase5-dev-tools
|
Build-Depends: debhelper (>= 9), libglib2.0-dev, libupnp-dev, libssl-dev, libxss-dev, libgnome-keyring-dev, libbz2-dev, libspeex-dev, libspeexdsp-dev, libxslt1-dev, cmake, libcurl4-openssl-dev, libopencv-dev, tcl8.6, libsqlcipher-dev, libmicrohttpd-dev, libavcodec-dev, qtmultimedia5-dev, qttools5-dev, libqt5x11extras5-dev, qtbase5-dev, qt5-qmake, qtbase5-dev-tools
|
||||||
Standards-Version: 4.1.4
|
Standards-Version: 4.1.4
|
||||||
|
@ -2,8 +2,8 @@ Creation of a new Debian changelog:
|
|||||||
|
|
||||||
dch --create --package retroshare --newversion 0.6.4-1
|
dch --create --package retroshare --newversion 0.6.4-1
|
||||||
|
|
||||||
Note: dch reads email in $DEBMAIL or $USER@$HOSTNAME, so it should be made correct in debian/changlog
|
Note: dch reads email in $DEBMAIL or $USER@$HOSTNAME, so it should be made correct in debian/changlog
|
||||||
If the email does not match the email in mentors, the package will be rejected.
|
If the email does not match the email in mentors, the package will be rejected.
|
||||||
|
|
||||||
dget command to retrieve source package:
|
dget command to retrieve source package:
|
||||||
|
|
||||||
@ -16,17 +16,34 @@ When ready:
|
|||||||
|
|
||||||
dput mentors retroshare_0.6.4-1_source.changes
|
dput mentors retroshare_0.6.4-1_source.changes
|
||||||
|
|
||||||
Checkign with lintian:
|
Checking with lintian:
|
||||||
lintian --pedantic --profile debian retroshare_0.6.4-1_source.changes
|
lintian -EI --pedantic --profile debian retroshare_0.6.4-1_source.changes
|
||||||
|
echo -e 'display-info=y\ndisplay-experimental=y\npedantic=y\ncolor=auto' > ~/.config/lintian/lintianrc
|
||||||
|
|
||||||
|
Also apply lintian to binaries
|
||||||
|
* fix overlinking in voip plugin
|
||||||
|
|
||||||
|
Turn the RFP bug into ITP
|
||||||
|
you have to send an e-mail to control@bugs.debian.org and use the "retitle" command
|
||||||
|
[05/13/2018] successfully retitled. The mail *body* (instead of subject) needs to contain the command in a single line.
|
||||||
|
|
||||||
Todo
|
Todo
|
||||||
* make a sid binary package.
|
x make a sid binary package.
|
||||||
* test in sid using pbuilder chroot system (pbuilder login)
|
* test in sid using pbuilder chroot system (pbuilder login)
|
||||||
* upload to mentors
|
x upload to mentors
|
||||||
* request for sponsorship
|
x request for sponsorship
|
||||||
|
*
|
||||||
|
|
||||||
Getting help:
|
Getting help:
|
||||||
https://webchat.oftc.net/
|
https://webchat.oftc.net/
|
||||||
|
|
||||||
Bug creation/report
|
Bug creation/report
|
||||||
reportbug -B debian
|
reportbug -B debian
|
||||||
|
|
||||||
|
Re-do debian/rules according to
|
||||||
|
https://sources.debian.org/src/sleepyhead/1.0.0-beta-2+dfsg-5/debian/rules/
|
||||||
|
the proper way to use qtchooser in d/rules is exporting QT_SELECT in d/rules, see https://pkg-kde.alioth.debian.org/packagingqtbasedstuff.html
|
||||||
|
disable autologin
|
||||||
|
|
||||||
|
Put the package on salsa:
|
||||||
|
salsa.debian.org
|
||||||
|
11
build_scripts/Debian/clean.sh
Executable file
11
build_scripts/Debian/clean.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
rm -f ./retroshare_0.?.?-1_source.build
|
||||||
|
rm -f ./retroshare_0.?.?-1_source.changes
|
||||||
|
rm -f ./retroshare_0.?.?-1.tar.gz
|
||||||
|
rm -f ./retroshare_0.?.?-1.diff.gz
|
||||||
|
rm -f ./retroshare_0.?.?-1.dsc
|
||||||
|
|
||||||
|
rm -f *~
|
||||||
|
find . -name "*~" -exec rm {} \;
|
||||||
|
|
6
build_scripts/Debian/debian/README.Debian
Normal file
6
build_scripts/Debian/debian/README.Debian
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
retroshare for Debian
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
<possible notes regarding this package - if none, delete this file>
|
||||||
|
|
||||||
|
-- Cyril Soler <csoler@sourceforge.net> Sat, 06 Feb 2010 07:15:46 +0100
|
5
build_scripts/Debian/debian/changelog
Normal file
5
build_scripts/Debian/debian/changelog
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
retroshare (0.6.4-1) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
* Initial release for Debian. (Closes: #659069)
|
||||||
|
|
||||||
|
-- Cyril Soler <csoler@users.sourceforge.net> Wed, 09 May 2018 10:11:31 +0200
|
1
build_scripts/Debian/debian/compat
Normal file
1
build_scripts/Debian/debian/compat
Normal file
@ -0,0 +1 @@
|
|||||||
|
10
|
39
build_scripts/Debian/debian/control
Normal file
39
build_scripts/Debian/debian/control
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
Source: retroshare
|
||||||
|
Section: devel
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Cyril Soler <csoler@users.sourceforge.net>
|
||||||
|
Build-Depends: debhelper (>= 10), libglib2.0-dev, libupnp-dev, libssl-dev, libxss-dev, libgnome-keyring-dev, libbz2-dev, libspeex-dev, libspeexdsp-dev, libxslt1-dev, cmake, libcurl4-openssl-dev, libopencv-dev, tcl8.6, libsqlcipher-dev, libmicrohttpd-dev, libavcodec-dev, qtmultimedia5-dev, qttools5-dev, libqt5x11extras5-dev, qtbase5-dev, qt5-qmake, qtbase5-dev-tools
|
||||||
|
Standards-Version: 4.1.4
|
||||||
|
Homepage: http://retroshare.sourceforge.net
|
||||||
|
|
||||||
|
Package: retroshare-voip-plugin
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}, retroshare, libspeex1, libspeexdsp1, libqt5multimedia5
|
||||||
|
Description: VOIP plugin for the Retroshare communication platform
|
||||||
|
This package provides a plugin for RetroShare, a secured Friend-to-Friend
|
||||||
|
communication plateform. The plugin adds voice-over-IP functionality to the
|
||||||
|
private chat window. Both friends chatting together need the plugin installed
|
||||||
|
to be able to talk together.
|
||||||
|
|
||||||
|
Package: retroshare-feedreader-plugin
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}, retroshare
|
||||||
|
Description: FeedReader plugin for the Retroshare communication platform
|
||||||
|
Plugin for Retroshare, adding a RSS feed reader tab to retroshare.
|
||||||
|
|
||||||
|
Package: retroshare-nogui
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}, gnome-keyring
|
||||||
|
Conflicts: retroshare
|
||||||
|
Description: headless version of Retroshare software
|
||||||
|
Headless version of the Retroshare platform.
|
||||||
|
|
||||||
|
Package: retroshare
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}, gnome-keyring
|
||||||
|
Conflicts: retroshare-nogui
|
||||||
|
Description: Secure communication with friends
|
||||||
|
RetroShare is a Open Source, private and secure decentralised
|
||||||
|
commmunication platform. It creates mesh of computers linked with TLS
|
||||||
|
connections, on top of which it provides file transfer, asynchronous email,
|
||||||
|
forums, channels and chat.
|
49
build_scripts/Debian/debian/copyright
Normal file
49
build_scripts/Debian/debian/copyright
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: retroshare
|
||||||
|
Upstream-Contact: retroshare.team@gmail.com
|
||||||
|
Source: https://github.com/retroshare/retroshare
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: Copyright 2007-2018, Retroshare Team <retroshare.team@gmail.com>
|
||||||
|
License: GPL-2+
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License version 2 as
|
||||||
|
published by the Free Software Foundation.
|
||||||
|
.
|
||||||
|
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.
|
||||||
|
.
|
||||||
|
See /usr/share/common-licenses/GPL-2 on your Debian system.
|
||||||
|
.
|
||||||
|
In addition to these license terms, the author grants the following
|
||||||
|
additional rights:
|
||||||
|
.
|
||||||
|
If you modify this program, or any covered work, by linking or
|
||||||
|
combining it with the OpenSSL project's OpenSSL library (or a
|
||||||
|
modified version of that library), containing parts covered by the
|
||||||
|
terms of the OpenSSL or SSLeay licenses, the author
|
||||||
|
grants you additional permission to convey the resulting work.
|
||||||
|
Corresponding Source for a non-source form of such a combination
|
||||||
|
shall include the source code for the parts of OpenSSL used as well
|
||||||
|
as that of the covered work.
|
||||||
|
.
|
||||||
|
You may at your option choose to remove this additional permission from
|
||||||
|
the work, or from any part of it.
|
||||||
|
.
|
||||||
|
It is possible to build this program in a way that it loads OpenSSL
|
||||||
|
libraries at run-time. If doing so, the following notices are required
|
||||||
|
by the OpenSSL and SSLeay licenses:
|
||||||
|
.
|
||||||
|
This product includes software developed by the OpenSSL Project
|
||||||
|
for use in the OpenSSL Toolkit. (http://www.openssl.org/)
|
||||||
|
.
|
||||||
|
This product includes cryptographic software written by Eric Young
|
||||||
|
(eay@cryptsoft.com)
|
||||||
|
|
||||||
|
|
0
build_scripts/Debian/debian/docs
Normal file
0
build_scripts/Debian/debian/docs
Normal file
@ -0,0 +1 @@
|
|||||||
|
debian/tmp/usr/lib/retroshare/extensions6/libFeedReader.so*
|
3
build_scripts/Debian/debian/retroshare-nogui.install
Normal file
3
build_scripts/Debian/debian/retroshare-nogui.install
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
debian/tmp/usr/bin/retroshare-nogui
|
||||||
|
debian/tmp/usr/share/retroshare/bdboot.txt
|
||||||
|
debian/tmp/usr/share/retroshare/webui/*
|
@ -0,0 +1 @@
|
|||||||
|
debian/tmp/usr/lib/retroshare/extensions6/libVOIP.so*
|
6
build_scripts/Debian/debian/retroshare.install
Normal file
6
build_scripts/Debian/debian/retroshare.install
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
debian/tmp/usr/bin/retroshare
|
||||||
|
debian/tmp/usr/bin/retroshare-nogui
|
||||||
|
debian/tmp/usr/share/applications/retroshare.desktop
|
||||||
|
debian/tmp/usr/share/icons/hicolor/*
|
||||||
|
debian/tmp/usr/share/pixmaps/retroshare.xpm
|
||||||
|
debian/tmp/usr/share/retroshare/*
|
5
build_scripts/Debian/debian/retrotor.install
Normal file
5
build_scripts/Debian/debian/retrotor.install
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
debian/tmp/usr/bin/retroshare
|
||||||
|
debian/tmp/usr/share/applications/retroshare.desktop
|
||||||
|
debian/tmp/usr/share/icons/hicolor/*
|
||||||
|
debian/tmp/usr/share/pixmaps/retroshare.xpm
|
||||||
|
debian/tmp/usr/share/retroshare/*
|
24
build_scripts/Debian/debian/rules
Executable file
24
build_scripts/Debian/debian/rules
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
export DH_VERBOSE = 1
|
||||||
|
|
||||||
|
DPKG_EXPORT_BUILDFLAGS = 1
|
||||||
|
|
||||||
|
# skip *-dbgsym packages
|
||||||
|
DEB_BUILD_OPTIONS=noddebs
|
||||||
|
|
||||||
|
include /usr/share/dpkg/default.mk
|
||||||
|
|
||||||
|
#export DEB_BUILD_MAINT_PTIONS = hardening=+all
|
||||||
|
export QT_SELECT = qt5
|
||||||
|
|
||||||
|
MY_BUILDDIR = _build
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --buildsystem=qmake --builddirectory=$(MY_BUILDDIR)
|
||||||
|
|
||||||
|
# Override dh_auto_configure in order to call qmake on the parent dir. We call mkdir here because of #800738.
|
||||||
|
|
||||||
|
override_dh_auto_configure:
|
||||||
|
@mkdir -p $(MY_BUILDDIR)
|
||||||
|
dh_auto_configure -- CONFIG="unix release retroshare_plugins rs_autologin" PREFIX=/usr LIB_DIR=/usr/lib ../src
|
1
build_scripts/Debian/debian/source/format
Normal file
1
build_scripts/Debian/debian/source/format
Normal file
@ -0,0 +1 @@
|
|||||||
|
1.0
|
145
build_scripts/Debian/debian_release_howto.txt
Normal file
145
build_scripts/Debian/debian_release_howto.txt
Normal file
@ -0,0 +1,145 @@
|
|||||||
|
Creation of a new Debian changelog:
|
||||||
|
|
||||||
|
dch --create --package retroshare --newversion 0.6.4-1
|
||||||
|
|
||||||
|
Note: dch reads email in $DEBMAIL or $USER@$HOSTNAME, so it should be made correct in debian/changlog
|
||||||
|
If the email does not match the email in mentors, the package will be rejected.
|
||||||
|
|
||||||
|
dget command to retrieve source package:
|
||||||
|
|
||||||
|
dget -u https://launchpad.net/~retroshare/+archive/ubuntu/stable/+files/retroshare_0.6.4-1.20180313.0e6d27ad~xenial.dsc
|
||||||
|
|
||||||
|
(-u means don't check PGP signature)
|
||||||
|
|
||||||
|
When ready:
|
||||||
|
* updload the package in a place that can be used to dget the package on mentors.debian.net.
|
||||||
|
|
||||||
|
dput mentors retroshare_0.6.4-1_source.changes
|
||||||
|
|
||||||
|
Checking with lintian:
|
||||||
|
lintian -EI --pedantic --profile debian retroshare_0.6.4-1_source.changes
|
||||||
|
echo -e 'display-info=y\ndisplay-experimental=y\npedantic=y\ncolor=auto' > ~/.config/lintian/lintianrc
|
||||||
|
|
||||||
|
Also apply lintian to binaries
|
||||||
|
* fix overlinking in voip plugin
|
||||||
|
|
||||||
|
Turn the RFP bug into ITP
|
||||||
|
you have to send an e-mail to control@bugs.debian.org and use the "retitle" command
|
||||||
|
[05/13/2018] successfully retitled. The mail *body* (instead of subject) needs to contain the command in a single line.
|
||||||
|
|
||||||
|
Todo
|
||||||
|
x make a sid binary package.
|
||||||
|
* test in sid using pbuilder chroot system (pbuilder login)
|
||||||
|
x upload to mentors
|
||||||
|
x request for sponsorship
|
||||||
|
*
|
||||||
|
|
||||||
|
Getting help:
|
||||||
|
https://webchat.oftc.net/
|
||||||
|
|
||||||
|
Bug creation/report
|
||||||
|
reportbug -B debian
|
||||||
|
|
||||||
|
Re-do debian/rules according to
|
||||||
|
https://sources.debian.org/src/sleepyhead/1.0.0-beta-2+dfsg-5/debian/rules/
|
||||||
|
the proper way to use qtchooser in d/rules is exporting QT_SELECT in d/rules, see https://pkg-kde.alioth.debian.org/packagingqtbasedstuff.html
|
||||||
|
disable autologin
|
||||||
|
|
||||||
|
Put the package on salsa:
|
||||||
|
salsa.debian.org
|
||||||
|
|
||||||
|
Debian binary changes file signature:
|
||||||
|
gpg --clearsign -u 0932399B retroshare_0.6.4-1_amd64.changes
|
||||||
|
|
||||||
|
Signature does only work when done with debsign:
|
||||||
|
debsign -k0932399B retroshare_0.6.4-1.dsc
|
||||||
|
debsign -k0932399B retroshare_0.6.4-1_source.changes
|
||||||
|
debsign -k0932399B retroshare_0.6.4-1_amd64.changes
|
||||||
|
|
||||||
|
Uploading-to-mentors bug:
|
||||||
|
Apparently the system prevents you from uploading while a package is in the
|
||||||
|
queue. So the upload responds "403 forbidden" whene e.g. the previous
|
||||||
|
upload was cancelled by ^C.
|
||||||
|
|
||||||
|
|
||||||
|
Licensing issues:
|
||||||
|
Various licenses involved:
|
||||||
|
|
||||||
|
R: re-licence to GPLv3
|
||||||
|
D: delete
|
||||||
|
|
||||||
|
Code part | Licenses |A| Authors | Comment
|
||||||
|
--------------------------------+------------------------+-+----------------------------------------------+-------------------------------------------------
|
||||||
|
libbitdht | GPLv3 | | drbob, csoler, Retroshare team |
|
||||||
|
bitdht/bencode.h | Public domain | | Mike Frysinger <vapier@gmail.com> |
|
||||||
|
bitdht/bdrandom.h | GPLv2 |R| csoler |
|
||||||
|
--------------------------------+------------------------+-+----------------------------------------------+-------------------------------------------------
|
||||||
|
libresapi | GPLv3 | | G10H4ck, [], electron128 | Most files are unlicenced
|
||||||
|
libretroshare | GPLv2,GPLv3 | | csoler,drbob,Mr-alice,Chris,Thunder | Some files unversionned.
|
||||||
|
plugins/dlfcn_win32.cc | GPLv2.1 |R| Ramiro Polla |
|
||||||
|
pqi/authgpg.h | GPLv2 |R| Raghu Dev R. | .cc is authed by drbob
|
||||||
|
upnp/UPnPBase.h | GPLv2 | | Marcelo Roberto Jimenez, aMule Team | other code in upnp/ not copyrighted
|
||||||
|
util/pugiconfig.h | MIT | | Arseny Kapoulkyne | [unused file!]
|
||||||
|
util/rsstring.h | GPLv2 |R| Thomas Kister |
|
||||||
|
util/rswin.h | GPLv2 |R| Thomas Kister |
|
||||||
|
util/rsversioninfo.h | [none] | | Alexandrut |
|
||||||
|
util/stacktrace.h | GPLv2 |R| Timo Bingmann, G10H4ck |
|
||||||
|
librssimulator | [None] | | No authors |
|
||||||
|
openpgpsdk | Apache | | Rachell Wilmer, Ben Laurie |
|
||||||
|
pegmarkdown | All right reserved | | Daniel Jalkut - Code currently unused |
|
||||||
|
plugins/feedreader | GPLv2 | | Thunder |
|
||||||
|
plugins/VOIP | | | |
|
||||||
|
AudioInputConfig.h+ | All right reserved | | Thorvald Natvig | Code can be modified/re-used. Mumble's code.
|
||||||
|
SpeezProcessor.h | | | Peter Zotov |
|
||||||
|
retroshare-android-notify-* | GPLv3 | | G10H4ck |
|
||||||
|
retroshare-android-service | GPLv3 | | G10H4ck |
|
||||||
|
retroshare-gui/src | | | Thunder, csoler, drbob, crypton |
|
||||||
|
control/* | GPLv2 | | Matt Edman, crypton, Justin Hiple | [Unused code]
|
||||||
|
common/ElideLabel.h | BSD | | Qt Toolkit |
|
||||||
|
common/FlowLayout.h | BSD | | Qt Toolkit | Is that really Qt code?? Qt examples can be used.
|
||||||
|
common/html.h | GPLv2 | | Matt Edman, defnax, Justin Hiple |
|
||||||
|
common/rwindow.h | GPLv2 | | Matt Edman, defnax, Justin Hiple |
|
||||||
|
common/vmessagebox.h | GPLv2 | | Matt Edman, defnax, Justin Hiple |
|
||||||
|
common/PictureFlow | unclear | | Ariya Hidayat (@kde.org) | [Unused code]
|
||||||
|
elastic/* | LGPL | | Trolltech |
|
||||||
|
FileTransfer/FTIWidget | GPLv2 | | defnax, lsn752 |
|
||||||
|
FileTransfer/xprogressb | GPLv2 | | Xesc |
|
||||||
|
help/browser.h | GPLv2 | | Matt Edman, defnax, Justin Hiple |
|
||||||
|
images/retroshare_win.rc.h | GPLv2 | | crypton | [Unused code]
|
||||||
|
msgs/textformat.h | GPLv3 | | Merdhah Momeny, Golnaz Nilieh | very simple .h. Can be re-implemented
|
||||||
|
settings/rsettings.h | GPLv2 | | Matt Edman, defnax, Justin Hiple |
|
||||||
|
statistics/BandwidthGraphW.h| GPLv2 | | Matt Edman, defnax, Justin Hiple |
|
||||||
|
statistics/dhtgraph.h | GPLv2 | | Matt Edman, defnax, Justin Hiple |
|
||||||
|
toaster/MessageToaster.h | GPLv3 | | Xesc |
|
||||||
|
toaster/DownloadToaster.h | GPLv3 | | Xesc |
|
||||||
|
About{Widget,Dialog}.h | GPLv2 | | Unipro, Russia | Very small file.
|
||||||
|
linetypes.h | GPLv2 | | Merdhah Momeny, Golnaz Nilieh | very simple .h. Can be re-implemented
|
||||||
|
mainpagestack.h | GPLv2 | | Matt Edman, crypton, Justin Hiple |
|
||||||
|
land/langagesupport.h | GPLv2 | | Matt Edman, crypton, Justin Hiple |
|
||||||
|
util/log.h | GPLv2 | | Matt Edman, crypton, Justin Hiple |
|
||||||
|
idle/idle.h | GPLv2 | | Justin Karneges | May be re-implemented
|
||||||
|
TorControl/* |* Public domaine | | John Brooks | Code from Ricochet.im
|
||||||
|
util/HandleRichText.h | GPLv2 | | Thomas Kister |
|
||||||
|
util/misc.h | GPLv2 | | defnax, Christophe Dumez |
|
||||||
|
util/printpreview.h | GPLv2 | | Trolltech example |
|
||||||
|
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
|
||||||
|
|
||||||
|
- Appache is compatible with GPLv3
|
||||||
|
|
||||||
|
Many files unversionned.
|
||||||
|
|
||||||
|
Use a pointer to the top level licence file
|
||||||
|
|
||||||
|
|
||||||
|
Files after switch:
|
||||||
|
|
||||||
|
libresapi/api/json.h MIT license Copyright (c) 2013 Jeff Weinstein (jeff.weinstein at gmail)
|
||||||
|
libretroshare/src/tcponudp/bss_tou.cc SSL Licence Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
|
||||||
|
libretroshare/src/upnp/UPnPBase.{h,cpp} GPL Licence Copyright (c) 2004-2009 Marcelo Roberto Jimenez ( phoenix@amule.org )
|
||||||
|
|
189
build_scripts/Debian/makeSourcePackage.sh
Executable file
189
build_scripts/Debian/makeSourcePackage.sh
Executable file
@ -0,0 +1,189 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
###################### PARAMETERS ####################
|
||||||
|
gitpath="https://github.com/RetroShare/RetroShare.git"
|
||||||
|
#branch="master"
|
||||||
|
branch="v0.6.4-official_release"
|
||||||
|
#bubba3="Y" # comment out to compile for bubba3
|
||||||
|
######################################################
|
||||||
|
|
||||||
|
RS_MAJOR_VERSION=`fgrep RS_MAJOR_VERSION ../../libretroshare/src/retroshare/rsversion.h | cut -d\\ -f3- | sed -e s\/\ \/\/g | cut -c1`
|
||||||
|
RS_MINOR_VERSION=`fgrep RS_MINOR_VERSION ../../libretroshare/src/retroshare/rsversion.h | cut -d\\ -f3- | sed -e s\/\ \/\/g | cut -c1`
|
||||||
|
RS_BUILD_NUMBER=`fgrep RS_BUILD_NUMBER ../../libretroshare/src/retroshare/rsversion.h | grep -v BUILD_NUMBER_ADD | cut -d\\ -f3- | sed -e s\/\ \/\/g | cut -c1`
|
||||||
|
|
||||||
|
# echo "RS_MAJOR_VERSION="${RS_MAJOR_VERSION}
|
||||||
|
# echo "RS_MINOR_VERSION="${RS_MINOR_VERSION}
|
||||||
|
# echo "RS_BUILD_NUMBER="${RS_BUILD_NUMBER}
|
||||||
|
|
||||||
|
version_number="${RS_MAJOR_VERSION}"'.'"${RS_MINOR_VERSION}"'.'"${RS_BUILD_NUMBER}"
|
||||||
|
workdir=retroshare-${version_number}
|
||||||
|
|
||||||
|
echo This script is going to build the debian source package for RetroShare, from the Git repository.
|
||||||
|
|
||||||
|
if test -d "${workdir}" ; then
|
||||||
|
echo Removing the ${workdir} directory...
|
||||||
|
rm -rf ${workdir}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Parse options
|
||||||
|
rev=""
|
||||||
|
dist=""
|
||||||
|
# This is the key for "Cyril Soler <csoler@sourceforge.net>"
|
||||||
|
gpgkey="0932399B"
|
||||||
|
|
||||||
|
date=`git log --pretty=format:"%ai" | head -1 | cut -d\ -f1 | sed -e s/-//g`
|
||||||
|
time=`git log --pretty=format:"%aD" | head -1 | cut -d\ -f5 | sed -e s/://g`
|
||||||
|
hhsh=`git log --pretty=format:"%H" | head -1 | cut -c1-8`
|
||||||
|
|
||||||
|
rev=${date}.${hhsh}
|
||||||
|
useretrotor="false"
|
||||||
|
|
||||||
|
while [ ${#} -gt 0 ]; do
|
||||||
|
case ${1} in
|
||||||
|
"-rev") shift
|
||||||
|
rev=${1}
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
"-key") shift
|
||||||
|
gpgkey=${1}
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
"-nodl")
|
||||||
|
nodl=yes
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
"-makeorig")
|
||||||
|
makeorig=yes
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
"-h") shift
|
||||||
|
echo Package building script for debian/ubuntu distributions
|
||||||
|
echo Usage:
|
||||||
|
echo " "${0} '-key [PGP key id] -rev [svn revision number] -distribution [distrib name list with quotes, in (wheezy, sid, precise, saucy, etc)]'
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
"*") echo "Unknown option"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
echo Attempting to get revision number...
|
||||||
|
ccount=`git rev-list --count --all`
|
||||||
|
ccount=`expr $ccount + 8613 - 8267`
|
||||||
|
|
||||||
|
echo " Workdir :"${workdir}
|
||||||
|
echo " Version :"${version_number}
|
||||||
|
echo " Using revision :"${rev}
|
||||||
|
echo " Commit count :"${ccount}
|
||||||
|
echo " Hash :"${hhsh}
|
||||||
|
echo " Date :"${date}
|
||||||
|
echo " Time :"${time}
|
||||||
|
echo " Using branch :"${branch}
|
||||||
|
echo " Using PGP key id :"${gpgkey}
|
||||||
|
|
||||||
|
if test ${useretrotor} = "true"; then
|
||||||
|
echo " "Specific flags : retrotor
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo Done.
|
||||||
|
version="${version_number}"."${rev}"
|
||||||
|
echo Got version number ${version}
|
||||||
|
echo
|
||||||
|
echo Please check that the changelog is up to date.
|
||||||
|
echo Hit ENTER if this is correct. Otherwise hit Ctrl+C
|
||||||
|
read tmp
|
||||||
|
|
||||||
|
echo Extracting base archive...
|
||||||
|
|
||||||
|
if ! test "${makeorig}" = "yes" ; then
|
||||||
|
if ! test -f retroshare_${version_number}.orig.tar.gz; then
|
||||||
|
echo Error: no orig file found. Please call with -makeorig option first
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! test "${nodl}" = "yes"; then
|
||||||
|
mkdir -p ${workdir}/src
|
||||||
|
echo Checking out latest snapshot...
|
||||||
|
cd ${workdir}/src
|
||||||
|
git clone --depth 1 ${gitpath} --single-branch --branch $branch .
|
||||||
|
|
||||||
|
cd -
|
||||||
|
|
||||||
|
if ! test -d ${workdir}/src/libretroshare/; then
|
||||||
|
echo Git clone failed.
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp -r debian ${workdir}/debian
|
||||||
|
|
||||||
|
# VOIP tweak
|
||||||
|
cp ${workdir}/src/retroshare-gui/src/gui/chat/PopupChatDialog.ui ${workdir}/src/plugins/VOIP/gui/PopupChatDialog.ui
|
||||||
|
|
||||||
|
# remove unised qml code, only needed on Android
|
||||||
|
rm -rf ${workdir}/src/retroshare-qml-app/
|
||||||
|
rm -rf ${workdir}/src/librssimulator/
|
||||||
|
rm -rf ${workdir}/src/retroshare-android-notify-service/
|
||||||
|
rm -rf ${workdir}/src/retroshare-android-service/
|
||||||
|
rm -rf ${workdir}/src/libretroshare/src/unused/
|
||||||
|
rm -rf ${workdir}/src/pegmarkdown/
|
||||||
|
rm -rf ${workdir}/src/unittests/
|
||||||
|
rm -rf ${workdir}/src/build_scripts/
|
||||||
|
rm -f ${workdir}/debian/*~
|
||||||
|
rm -f ${workdir}/debian/.*.sw?
|
||||||
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble_Compact/private/images.sh
|
||||||
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/src/images.sh
|
||||||
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/public/images.sh
|
||||||
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/"history"/images.sh
|
||||||
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/private/images.sh
|
||||||
|
|
||||||
|
cd ${workdir}
|
||||||
|
echo Setting version numbers...
|
||||||
|
|
||||||
|
# setup version numbers
|
||||||
|
sed -e "s%RS_REVISION_NUMBER.*%RS_REVISION_NUMBER 0x${hhsh}%" src/libretroshare/src/retroshare/rsversion.in > src/libretroshare/src/retroshare/rsversion.h
|
||||||
|
|
||||||
|
# Various cleaning
|
||||||
|
echo Cleaning...
|
||||||
|
|
||||||
|
\rm -rf src/.git
|
||||||
|
|
||||||
|
if test "${makeorig}" = "yes" ; then
|
||||||
|
echo making orig archive
|
||||||
|
cd -
|
||||||
|
tar zcvf retroshare_${version_number}.orig.tar.gz ${workdir}
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd -
|
||||||
|
else
|
||||||
|
tar zxvf retroshare_${version_number}.orig.tar.gz
|
||||||
|
|
||||||
|
cp -r debian/* ${workdir}/debian/
|
||||||
|
rm -rf ${workdir}/src/retroshare-qml-app/
|
||||||
|
rm -rf ${workdir}/src/retroshare-android-notify-service/
|
||||||
|
rm -rf ${workdir}/src/retroshare-android-service/
|
||||||
|
rm -rf ${workdir}/src/librssimulator/
|
||||||
|
rm -rf ${workdir}/src/unittests/
|
||||||
|
rm -rf ${workdir}/src/libretroshare/src/unused/
|
||||||
|
rm -rf ${workdir}/src/pegmarkdown/
|
||||||
|
rm -rf ${workdir}/src/build_scripts/
|
||||||
|
rm -f ${workdir}/debian/*~
|
||||||
|
rm -f ${workdir}/debian/.*.sw?
|
||||||
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble_Compact/private/images.sh
|
||||||
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/src/images.sh
|
||||||
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/public/images.sh
|
||||||
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/"history"/images.sh
|
||||||
|
rm -f ${workdir}/src/retroshare-gui/src/gui/qss/chat/Bubble/private/images.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Cloning sqlcipher
|
||||||
|
# git clone https://github.com/sqlcipher/sqlcipher.git
|
||||||
|
|
||||||
|
echo Calling debuild...
|
||||||
|
cd ${workdir}
|
||||||
|
debuild -S -k${gpgkey} --lintian-opts +pedantic -EviIL
|
||||||
|
cd -
|
||||||
|
|
||||||
|
exit 0
|
@ -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"
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
@ -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"
|
||||||
|
@ -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;
|
||||||
|
@ -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"
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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.
|
||||||
|
@ -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"
|
||||||
|
@ -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>
|
||||||
|
@ -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"
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
@ -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.
|
||||||
|
@ -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.
|
||||||
******/
|
******/
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
@ -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"
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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?
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
@ -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>
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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 Lesser 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 Lesser General Public License for more details. #
|
||||||
|
# #
|
||||||
|
# You should have received a copy of the GNU Lesser 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
|
||||||
|
@ -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"
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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>
|
||||||
|
@ -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"
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
@ -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.
|
||||||
//
|
//
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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() */
|
||||||
|
@ -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>
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/ApiPluginHandler.cpp *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
#include "ApiPluginHandler.h"
|
#include "ApiPluginHandler.h"
|
||||||
|
|
||||||
namespace resource_api
|
namespace resource_api
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/ApiPluginHandler.h *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "ResourceRouter.h"
|
#include "ResourceRouter.h"
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/ApiServer.cpp *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
#include "ApiServer.h"
|
#include "ApiServer.h"
|
||||||
|
|
||||||
#include <retroshare/rspeers.h>
|
#include <retroshare/rspeers.h>
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/ApiServer.h *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <retroshare/rsplugin.h>
|
#include <retroshare/rsplugin.h>
|
||||||
|
@ -1,20 +1,24 @@
|
|||||||
/*
|
/*******************************************************************************
|
||||||
* libresapi local socket server
|
* libresapi/api/ApiServer.cpp *
|
||||||
* Copyright (C) 2016 Gioacchino Mazzurco <gio@eigenlab.org>
|
* *
|
||||||
*
|
* LibResAPI: API for local socket server *
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* *
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* Copyright 2016 by Gioacchino Mazzurco <gio@eigenlab.org> *
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* *
|
||||||
* License, or (at your option) any later version.
|
* 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 program is distributed in the hope that it will be useful,
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* License, or (at your option) any later version. *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* *
|
||||||
* GNU Affero General Public License for more details.
|
* This program is distributed in the hope that it will be useful, *
|
||||||
*
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* 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 <QStringList>
|
#include <QStringList>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
|
@ -1,21 +1,25 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/ApiServer.h *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2016 by Gioacchino Mazzurco <gio@eigenlab.org> *
|
||||||
|
* *
|
||||||
|
* 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
|
||||||
/*
|
|
||||||
* libresapi local socket server
|
|
||||||
* Copyright (C) 2016 Gioacchino Mazzurco <gio@eigenlab.org>
|
|
||||||
*
|
|
||||||
* 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 <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <QLocalServer>
|
#include <QLocalServer>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/ApiServerMHD.cpp *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
#include "ApiServerMHD.h"
|
#include "ApiServerMHD.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/ApiServerMHD.h *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/ApiTypes.h *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
@ -1,20 +1,24 @@
|
|||||||
/*
|
/*******************************************************************************
|
||||||
* RetroShare JSON API
|
* libresapi/api/ChannelsHandler.cpp *
|
||||||
* Copyright (C) 2018 Gioacchino Mazzurco <gio@eigenlab.org>
|
* *
|
||||||
*
|
* LibResAPI: API for local socket server *
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* *
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* Copyright 2018 by Gioacchino Mazzurco <gio@eigenlab.org> *
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* *
|
||||||
* License, or (at your option) any later version.
|
* 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 program is distributed in the hope that it will be useful,
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* License, or (at your option) any later version. *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* *
|
||||||
* GNU Affero General Public License for more details.
|
* This program is distributed in the hope that it will be useful, *
|
||||||
*
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* 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 "ChannelsHandler.h"
|
#include "ChannelsHandler.h"
|
||||||
|
|
||||||
|
@ -1,21 +1,25 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/ChannelsHandler.h *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by Gioacchino Mazzurco <gio@eigenlab.org> *
|
||||||
|
* *
|
||||||
|
* 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
|
||||||
/*
|
|
||||||
* RetroShare JSON API
|
|
||||||
* Copyright (C) 2018 Gioacchino Mazzurco <gio@eigenlab.org>
|
|
||||||
*
|
|
||||||
* 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 <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "ResourceRouter.h"
|
#include "ResourceRouter.h"
|
||||||
|
|
||||||
|
@ -1,21 +1,25 @@
|
|||||||
/*
|
/*******************************************************************************
|
||||||
* libresapi
|
* libresapi/api/ChatHandler.cpp *
|
||||||
* Copyright (C) 2015 electron128 <electron128@yahoo.com>
|
* *
|
||||||
* Copyright (C) 2017 Gioacchino Mazzurco <gio@eigenlab.org>
|
* LibResAPI: API for local socket server *
|
||||||
*
|
* *
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* Copyright 2015 by electron128 <electron128@yahoo.com> *
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* Copyright 2017 by Gioacchino Mazzurco <gio@eigenlab.org> *
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* *
|
||||||
* License, or (at your option) any later version.
|
* 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 program is distributed in the hope that it will be useful,
|
* published by the Free Software Foundation, either version 3 of the *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* License, or (at your option) any later version. *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* *
|
||||||
* GNU Affero General Public License for more details.
|
* This program is distributed in the hope that it will be useful, *
|
||||||
*
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* 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 "ChatHandler.h"
|
#include "ChatHandler.h"
|
||||||
#include "Pagination.h"
|
#include "Pagination.h"
|
||||||
|
@ -1,3 +1,25 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/ChatHandler.h *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2015 by electron128 <electron128@yahoo.com> *
|
||||||
|
* Copyright 2017 by Gioacchino Mazzurco <gio@eigenlab.org> *
|
||||||
|
* *
|
||||||
|
* 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 "ResourceRouter.h"
|
#include "ResourceRouter.h"
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/FileSearchHandler.cpp *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include "FileSearchHandler.h"
|
#include "FileSearchHandler.h"
|
||||||
@ -190,9 +211,9 @@ void FileSearchHandler::handleCreateSearch(Request &req, Response &resp)
|
|||||||
// i have no idea what the reasons for two different search modes are
|
// i have no idea what the reasons for two different search modes are
|
||||||
// rs-gui does it, so do we
|
// rs-gui does it, so do we
|
||||||
if(words.size() == 1)
|
if(words.size() == 1)
|
||||||
search_id = mTurtle->turtleSearch(words.front());
|
search_id = rsFiles->turtleSearch(words.front());
|
||||||
else
|
else
|
||||||
search_id = mTurtle->turtleSearch(lin_exp);
|
search_id = rsFiles->turtleSearch(lin_exp);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::list<FileDetail> results;
|
std::list<FileDetail> results;
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/FileSearchHandler.h *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "ResourceRouter.h"
|
#include "ResourceRouter.h"
|
||||||
#include "StateTokenServer.h"
|
#include "StateTokenServer.h"
|
||||||
|
@ -1,21 +1,24 @@
|
|||||||
/*
|
/*******************************************************************************
|
||||||
* libresapi
|
* libresapi/api/FileSharingHandler.cpp *
|
||||||
*
|
* *
|
||||||
* Copyright (C) 2017, Konrad Dębiec <konradd@tutanota.com>
|
* LibResAPI: API for local socket server *
|
||||||
*
|
* *
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* Copyright (C) 2017, Konrad Dębiec <konradd@tutanota.com> *
|
||||||
* 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 free software: you can redistribute it and/or modify *
|
||||||
* 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 Affero 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 Affero General Public License
|
* GNU Affero General Public License for more details. *
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* *
|
||||||
*/
|
* 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 "FileSharingHandler.h"
|
#include "FileSharingHandler.h"
|
||||||
|
|
||||||
namespace resource_api
|
namespace resource_api
|
||||||
|
@ -1,21 +1,24 @@
|
|||||||
/*
|
/*******************************************************************************
|
||||||
* libresapi
|
* libresapi/api/FileSharingHandler.cpp *
|
||||||
*
|
* *
|
||||||
* Copyright (C) 2017, Konrad Dębiec <konradd@tutanota.com>
|
* LibResAPI: API for local socket server *
|
||||||
*
|
* *
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* Copyright (C) 2017, Konrad Dębiec <konradd@tutanota.com> *
|
||||||
* 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 free software: you can redistribute it and/or modify *
|
||||||
* 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 Affero 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 Affero General Public License
|
* GNU Affero General Public License for more details. *
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* *
|
||||||
*/
|
* 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 "ResourceRouter.h"
|
#include "ResourceRouter.h"
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/ForumHandler.cpp *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
#include "ForumHandler.h"
|
#include "ForumHandler.h"
|
||||||
|
|
||||||
#include <retroshare/rsgxsforums.h>
|
#include <retroshare/rsgxsforums.h>
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/ForumHandler.h *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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 FORUMHANDLER_H
|
#ifndef FORUMHANDLER_H
|
||||||
#define FORUMHANDLER_H
|
#define FORUMHANDLER_H
|
||||||
|
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/GetPluginInterfaces.cpp *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
#include "GetPluginInterfaces.h"
|
#include "GetPluginInterfaces.h"
|
||||||
|
|
||||||
#include <retroshare/rsplugin.h>
|
#include <retroshare/rsplugin.h>
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/GetPluginInterfaces.h *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
class RsPlugInInterfaces;
|
class RsPlugInInterfaces;
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/GxsResponseTask.cpp *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
#include "GxsResponseTask.h"
|
#include "GxsResponseTask.h"
|
||||||
|
|
||||||
#include "Operators.h"
|
#include "Operators.h"
|
||||||
|
@ -1,3 +1,24 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/GxsResponseTask.h *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright 2018 by 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/>. *
|
||||||
|
* *
|
||||||
|
*******************************************************************************/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "ApiTypes.h"
|
#include "ApiTypes.h"
|
||||||
|
@ -1,22 +1,25 @@
|
|||||||
/*
|
/*******************************************************************************
|
||||||
* libresapi
|
* libresapi/api/IdentityHandler.cpp *
|
||||||
*
|
* *
|
||||||
* Copyright (C) 2015 electron128 <electron128@yahoo.com>
|
* LibResAPI: API for local socket server *
|
||||||
* Copyright (C) 2017 Gioacchino Mazzurco <gio@eigenlab.org>
|
* *
|
||||||
*
|
* Copyright (C) 2015 electron128 <electron128@yahoo.com> *
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* Copyright (C) 2017 Gioacchino Mazzurco <gio@eigenlab.org> *
|
||||||
* 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 free software: you can redistribute it and/or modify *
|
||||||
* 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 Affero 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 Affero General Public License
|
* GNU Affero General Public License for more details. *
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* *
|
||||||
*/
|
* 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 "IdentityHandler.h"
|
#include "IdentityHandler.h"
|
||||||
|
|
||||||
|
@ -1,23 +1,26 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
* libresapi/api/IdentityHandler.h *
|
||||||
|
* *
|
||||||
|
* LibResAPI: API for local socket server *
|
||||||
|
* *
|
||||||
|
* Copyright (C) 2015 electron128 <electron128@yahoo.com> *
|
||||||
|
* Copyright (C) 2017 Gioacchino Mazzurco <gio@eigenlab.org> *
|
||||||
|
* *
|
||||||
|
* 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
|
||||||
/*
|
|
||||||
* libresapi
|
|
||||||
*
|
|
||||||
* Copyright (C) 2015 electron128 <electron128@yahoo.com>
|
|
||||||
* Copyright (C) 2017 Gioacchino Mazzurco <gio@eigenlab.org>
|
|
||||||
*
|
|
||||||
* 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 <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <retroshare/rsnotify.h>
|
#include <retroshare/rsnotify.h>
|
||||||
#include <util/rsthreads.h>
|
#include <util/rsthreads.h>
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user