Skip to content

Commit

Permalink
Fixed linking issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
rakshasa committed Nov 25, 2024
1 parent 0824383 commit 31c0fb3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 39 deletions.
45 changes: 8 additions & 37 deletions src/torrent/tracker.cc
Original file line number Diff line number Diff line change
@@ -1,39 +1,3 @@
// libTorrent - BitTorrent library
// Copyright (C) 2005-2011, Jari Sundell
//
// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// In addition, as a special exception, the copyright holders give
// permission to link the code of portions of this program with the
// OpenSSL library under certain conditions as described in each
// individual source file, and distribute linked combinations
// including the two.
//
// You must obey the GNU General Public License in all respects for
// all of the code used other than OpenSSL. If you modify file(s)
// with this exception, you may extend this exception to your version
// of the file(s), but you are not obligated to do so. If you do not
// wish to do so, delete this exception statement from your version.
// If you delete this exception statement from all source files in the
// program, then also delete it here.
//
// Contact: Jari Sundell <[email protected]>
//
// Skomakerveien 33
// 3185 Skoppum, NORWAY

#include "config.h"

#include <algorithm>
Expand All @@ -45,6 +9,13 @@

namespace torrent {

constexpr int Tracker::default_min_interval;
constexpr int Tracker::min_min_interval;
constexpr int Tracker::max_min_interval;
constexpr int Tracker::default_normal_interval;
constexpr int Tracker::min_normal_interval;
constexpr int Tracker::max_normal_interval;

Tracker::Tracker(TrackerList* parent, const std::string& url, int flags) :
m_flags(flags),
m_parent(parent),
Expand Down Expand Up @@ -82,7 +53,7 @@ Tracker::enable() {
return;

m_flags |= flag_enabled;

if (m_parent->slot_tracker_enabled())
m_parent->slot_tracker_enabled()(this);
}
Expand Down
4 changes: 2 additions & 2 deletions src/torrent/tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ class LIBTORRENT_EXPORT Tracker {
static const int max_flag_size = 0x10;
static const int mask_base_flags = 0x10 - 1;

static constexpr int min_min_interval = 300;
static constexpr int default_min_interval = 600;
static constexpr int min_min_interval = 300;
static constexpr int max_min_interval = 4 * 3600;

static constexpr int min_normal_interval = 600;
static constexpr int default_normal_interval = 1800;
static constexpr int min_normal_interval = 600;
static constexpr int max_normal_interval = 8 * 3600;

virtual ~Tracker() {}
Expand Down

0 comments on commit 31c0fb3

Please sign in to comment.