Delete some obsolete stuff.

This commit is contained in:
Adam Ierymenko 2014-05-29 18:36:17 +00:00
parent eae130467b
commit 67498e576c
5 changed files with 0 additions and 151 deletions

View File

@ -1,123 +0,0 @@
/*
* ZeroTier One - Global Peer to Peer Ethernet
* Copyright (C) 2011-2014 ZeroTier Networks LLC
*
* 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 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* --
*
* ZeroTier may be used and distributed under the terms of the GPLv3, which
* are available at: http://www.gnu.org/licenses/gpl-3.0.html
*
* If you would like to embed ZeroTier into a commercial application or
* redistribute it in a modified binary form, please contact ZeroTier Networks
* LLC. Start here: http://www.zerotier.com/
*/
#ifndef _ZT_RANGE_HPP
#define _ZT_RANGE_HPP
namespace ZeroTier {
/**
* A range of numeric values
*
* @tparam T Type, can be any numeric value (int, float, double, etc.)
*/
template<typename T>
class Range
{
public:
/**
* Construct an empty range
*/
Range()
throw() :
start(0),
end(0)
{
}
/**
* @param s Starting value (inclusive)
* @param e Ending value (exclusive)
*/
Range(T s,T e)
throw() :
start(s),
end(e)
{
}
/**
* Construct a range containing from n to n+1 (thus only n for integers)
*
* @param n Number to contain
*/
Range(T n)
throw() :
start(n),
end(n+1)
{
}
/**
* @return end - start
*/
inline T magnitude() const
throw()
{
return (end - start);
}
/**
* @return True if range contains something (magnitude is nonzero)
*/
inline operator bool() const
throw()
{
return (end > start);
}
/**
* @param v Value to test
* @return True if value is between start (inclusive) and end (exclusive)
*/
inline bool operator()(const T &v) const
throw()
{
return ((v >= start)&&(v < end));
}
inline bool operator==(const Range &r) const throw() { return ((start == r.start)&&(end == r.end)); }
inline bool operator!=(const Range &r) const throw() { return (!(*this == r)); }
inline bool operator<(const Range &r) const throw() { return ((start < r.start) ? true : ((start == r.start) ? (end < r.end) : false)); }
inline bool operator>(const Range &r) const throw() { return (r < *this); }
inline bool operator<=(const Range &r) const throw() { return !(r < *this); }
inline bool operator>=(const Range &r) const throw() { return !(*this < r); }
/**
* Start of range (may be modified directly)
*/
T start;
/**
* End of range (may be modified directly)
*/
T end;
};
} // namespace ZeroTier
#endif

View File

@ -1,3 +0,0 @@
This is a do-nothing placebo software update for internal testing. It's a
shell script that just prints a simple message and an .NFO file that signs
it as official.

View File

@ -1,6 +0,0 @@
vMajor=999
vMinor=999
vRevision=999
signedBy=e9bc3707b5
ed25519=ca7b943ace5451f420f1f599822d7013534a7cb7997096141e6a1aa6398c5f260c19dc5eecb297c922950f26dee7f9db787f8dbf85bc422baf3bff94c1131e086a7fc85c26dbb8c1b0a9cae63acc34998d9e1ce553156ea5638f9c99a50f6e2e
url=http://download.zerotier.com/update/update-dummy.sh

View File

@ -1,4 +0,0 @@
#!/bin/bash
echo "Dummy updater -- run with opts: $*"
exit 0

View File

@ -1,15 +0,0 @@
type=netconf-init
netconfId=8a89399f23:0:28067b5c4b9d2a43a25ae6a01babcd943fa60c35b4fd591d39ae5e16d69fe47c196dc90fa2fdaf4e2a4a57b505612c96722e0a0eafbdcf99efbc8031f1d7acd2:b000d2a0e6048d14fa5bb30bea26eb1b0c2c0e725a622f0ca611b2dfe001678c5c1a7326750d7080834e085c6c06621b91c2e00448a8dec5c11d89bd358ac294
type=netconf-request
peerId=ce9d545ed5:0:6eaf30f54f10bfad20df64a3eb129c08efb40901b35a0d1cb1ab2732ca8ce118f0375dd67db62c30adc5cb9ed9ca03d1090b68b9b59bf1cee163dc5fdbe9bcd5
from=127.0.0.1:1234
nwid=8a89399f234dcaf3
requestId=1
type=netconf-request
peerId=ce9d545ed5:0:6eaf30f54f10bfad20df64a3eb129c08efb40901b35a0d1cb1ab2732ca8ce118f0375dd67db62c30adc5cb9ed9ca03d1090b68b9b59bf1cee163dc5fdbe9bcd5
from=127.0.0.1:1234
nwid=8a89399f234dcaf4
requestId=2