~ubuntu-branches/debian/experimental/nzbget/experimental

« back to all changes in this revision

Viewing changes to RemoteServer.h

  • Committer: Package Import Robot
  • Author(s): Andreas Moog
  • Date: 2013-07-18 14:50:28 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130718145028-qhxse81w1sj5w424
Tags: 11.0+dfsg-1
* New upstream release (Closes: #701896)
* Repackage original tarball to remove copies of jquery and twitter-
  bootstrap
* debian/watch: Update for new versioning scheme
* debian/patches: Remove all old patches, add one patch:
  - dont-embed-libraries.patch: Don't install embedded jquery and bootstrap 
    libraries
* debian/combat: Upgrade to debhelper combat 9
* debian/control:
  - Fix Vcs-Git field
  - Adjust debhelper version for combat level 9
  - Add jquery and bootstrap to depends for integrated webserver
  - Add python to recommends for post-processing scripts
  - Bump build-depends on libpar2-dev to support the cancel function
* debian/links:
  - Use the system jquery and bootstrap libraries
* debian/rules:
  - Add get-orig-source target to build modified upstream tarball
* Adjust sample nzbget.conf:
  - Only listen to 127.0.0.1 instead of 0.0.0.0
  - Use nzbget.conf as template for webui configuration
* Adjust sample nzbgetd init file:
  - Point to correct location of nzbget binary

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  This file is part of nzbget
3
3
 *
4
 
 *  Copyright (C) 2005  Bo Cordes Petersen <placebodk@users.sourceforge.net>
5
 
 *  Copyright (C) 2007  Andrei Prygounkov <hugbug@users.sourceforge.net>
 
4
 *  Copyright (C) 2005 Bo Cordes Petersen <placebodk@users.sourceforge.net>
 
5
 *  Copyright (C) 2007-2013 Andrey Prygunkov <hugbug@users.sourceforge.net>
6
6
 *
7
7
 *  This program is free software; you can redistribute it and/or modify
8
8
 *  it under the terms of the GNU General Public License as published by
18
18
 *  along with this program; if not, write to the Free Software
19
19
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20
20
 *
21
 
 * $Revision: 91 $
22
 
 * $Date: 2008-02-02 14:23:43 +0100 (Sa, 02 Feb 2008) $
 
21
 * $Revision: 542 $
 
22
 * $Date: 2013-01-17 20:07:13 +0100 (Thu, 17 Jan 2013) $
23
23
 *
24
24
 */
25
25
 
28
28
#define REMOTESERVER_H
29
29
 
30
30
#include "Thread.h"
31
 
#include "NetAddress.h"
32
31
#include "Connection.h"
33
32
 
34
33
class RemoteServer : public Thread
35
34
{
36
35
private:
37
 
        NetAddress*                     m_pNetAddress;
 
36
        bool                            m_bTLS;
38
37
        Connection*                     m_pConnection;
39
38
 
40
39
public:
41
 
                                                RemoteServer();
 
40
                                                RemoteServer(bool bTLS);
42
41
                                                ~RemoteServer();
43
42
        virtual void            Run();
44
43
        virtual void            Stop();
47
46
class RequestProcessor : public Thread
48
47
{
49
48
private:
50
 
        SOCKET                          m_iSocket;
 
49
        bool                            m_bTLS;
 
50
        Connection*                     m_pConnection;
51
51
 
52
52
public:
 
53
                                                ~RequestProcessor();
53
54
        virtual void            Run();
54
 
        void                            SetSocket(SOCKET iSocket) { m_iSocket = iSocket; };
 
55
        void                            SetTLS(bool bTLS) { m_bTLS = bTLS; }
 
56
        void                            SetConnection(Connection* pConnection) { m_pConnection = pConnection; }
55
57
};
56
58
 
57
59
#endif