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

« back to all changes in this revision

Viewing changes to RemoteServer.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Moog
  • Date: 2011-05-06 19:01:38 UTC
  • Revision ID: james.westby@ubuntu.com-20110506190138-6l4nro6jmhr3837i
Tags: upstream-0.7.0
ImportĀ upstreamĀ versionĀ 0.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  This file is part of nzbget
 
3
 *
 
4
 *  Copyright (C) 2005  Bo Cordes Petersen <placebodk@users.sourceforge.net>
 
5
 *  Copyright (C) 2007  Andrei Prygounkov <hugbug@users.sourceforge.net>
 
6
 *
 
7
 *  This program is free software; you can redistribute it and/or modify
 
8
 *  it under the terms of the GNU General Public License as published by
 
9
 *  the Free Software Foundation; either version 2 of the License, or
 
10
 *  (at your option) any later version.
 
11
 *
 
12
 *  This program is distributed in the hope that it will be useful,
 
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 *  GNU General Public License for more details.
 
16
 *
 
17
 *  You should have received a copy of the GNU General Public License
 
18
 *  along with this program; if not, write to the Free Software
 
19
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
20
 *
 
21
 * $Revision: 91 $
 
22
 * $Date: 2008-02-02 14:23:43 +0100 (Sa, 02 Feb 2008) $
 
23
 *
 
24
 */
 
25
 
 
26
 
 
27
#ifndef REMOTESERVER_H
 
28
#define REMOTESERVER_H
 
29
 
 
30
#include "Thread.h"
 
31
#include "NetAddress.h"
 
32
#include "Connection.h"
 
33
 
 
34
class RemoteServer : public Thread
 
35
{
 
36
private:
 
37
        NetAddress*                     m_pNetAddress;
 
38
        Connection*                     m_pConnection;
 
39
 
 
40
public:
 
41
                                                RemoteServer();
 
42
                                                ~RemoteServer();
 
43
        virtual void            Run();
 
44
        virtual void            Stop();
 
45
};
 
46
 
 
47
class RequestProcessor : public Thread
 
48
{
 
49
private:
 
50
        SOCKET                          m_iSocket;
 
51
 
 
52
public:
 
53
        virtual void            Run();
 
54
        void                            SetSocket(SOCKET iSocket) { m_iSocket = iSocket; };
 
55
};
 
56
 
 
57
#endif