mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-07 14:49:21 +00:00
* Added support for SCGI rpc calls.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@905 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
#include "input/manager.h"
|
||||
#include "input/input_event.h"
|
||||
#include "rpc/fast_cgi.h"
|
||||
#include "rpc/scgi.h"
|
||||
#include "rpc/xmlrpc.h"
|
||||
#include "ui/root.h"
|
||||
#include "utils/variable_map.h"
|
||||
@@ -73,6 +74,7 @@ Control::Control() :
|
||||
m_downloadVariables(new utils::VariableMap()),
|
||||
|
||||
m_fastCgi(NULL),
|
||||
m_scgi(NULL),
|
||||
m_xmlrpc(NULL),
|
||||
|
||||
m_tick(0) {
|
||||
@@ -129,6 +131,7 @@ Control::initialize() {
|
||||
void
|
||||
Control::cleanup() {
|
||||
delete m_fastCgi; m_fastCgi = NULL;
|
||||
delete m_scgi; m_scgi = NULL;
|
||||
delete m_xmlrpc; m_xmlrpc = NULL;
|
||||
|
||||
priority_queue_erase(&taskScheduler, &m_taskShutdown);
|
||||
@@ -163,6 +166,11 @@ Control::handle_shutdown() {
|
||||
m_shutdownReceived = false;
|
||||
}
|
||||
|
||||
torrent::Poll*
|
||||
Control::poll() {
|
||||
return m_core->get_poll_manager()->get_torrent_poll();
|
||||
}
|
||||
|
||||
void
|
||||
Control::set_umask(mode_t m) {
|
||||
::umask(m);
|
||||
|
||||
Reference in New Issue
Block a user