aboutsummaryrefslogtreecommitdiff
path: root/c++-libbu++/src/gatscon/proxythread.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c++-libbu++/src/gatscon/proxythread.h55
1 files changed, 31 insertions, 24 deletions
diff --git a/c++-libbu++/src/gatscon/proxythread.h b/c++-libbu++/src/gatscon/proxythread.h
index df75046..e53ca2c 100644
--- a/c++-libbu++/src/gatscon/proxythread.h
+++ b/c++-libbu++/src/gatscon/proxythread.h
@@ -1,3 +1,10 @@
1/*
2 * Copyright (C) 2007-2012 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libgats library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
1#ifndef PROXY_THREAD_H 8#ifndef PROXY_THREAD_H
2#define PROXY_THREAD_H 9#define PROXY_THREAD_H
3 10
@@ -8,53 +15,53 @@
8 15
9class ProxyThread : public QThread 16class ProxyThread : public QThread
10{ 17{
11 Q_OBJECT; 18 Q_OBJECT;
12public: 19public:
13 ProxyThread( QObject *pParent, int iPortIn, const QByteArray &baHostOut, 20 ProxyThread( QObject *pParent, int iPortIn, const QByteArray &baHostOut,
14 int iPortOut ); 21 int iPortOut );
15 virtual ~ProxyThread(); 22 virtual ~ProxyThread();
16 23
17 class ProxyHostThread *pHost; 24 class ProxyHostThread *pHost;
18 25
19 void send( Gats::Object *pObj ); 26 void send( Gats::Object *pObj );
20 27
21signals: 28signals:
22 void recv( Gats::Object *pObj ); 29 void recv( Gats::Object *pObj );
23 void gotConnection(); 30 void gotConnection();
24 31
25protected: 32protected:
26 virtual void run(); 33 virtual void run();
27 34
28private: 35private:
29 int iPortIn; 36 int iPortIn;
30 QByteArray baHostOut; 37 QByteArray baHostOut;
31 int iPortOut; 38 int iPortOut;
32 39
33 Bu::StreamStack ssCli; 40 Bu::StreamStack ssCli;
34 Gats::GatsStream gsCli; 41 Gats::GatsStream gsCli;
35}; 42};
36 43
37class ProxyHostThread : public QThread 44class ProxyHostThread : public QThread
38{ 45{
39 Q_OBJECT; 46 Q_OBJECT;
40public: 47public:
41 ProxyHostThread( QObject *pParent, ProxyThread *pClient ); 48 ProxyHostThread( QObject *pParent, ProxyThread *pClient );
42 virtual ~ProxyHostThread(); 49 virtual ~ProxyHostThread();
43 50
44 void send( Gats::Object *pObj ); 51 void send( Gats::Object *pObj );
45 52
46 void setStream( Bu::Stream *pStr ); 53 void setStream( Bu::Stream *pStr );
47 54
48signals: 55signals:
49 void recv( Gats::Object *pObj ); 56 void recv( Gats::Object *pObj );
50 57
51protected: 58protected:
52 virtual void run(); 59 virtual void run();
53 60
54private: 61private:
55 ProxyThread *pClient; 62 ProxyThread *pClient;
56 Bu::StreamStack ssHst; 63 Bu::StreamStack ssHst;
57 Gats::GatsStream gsHst; 64 Gats::GatsStream gsHst;
58}; 65};
59 66
60#endif 67#endif