diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-05-17 04:18:13 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-05-17 04:18:13 +0000 |
commit | 6aefa6632023c99c5b91bae0e099df94fa69d890 (patch) | |
tree | 6ac83b347cc70dca827c887f0046924dabec042d /src/gatscon/proxywidget.h | |
parent | efcbdb7a0347b4399cbabacf3cbea432eeafb17b (diff) | |
download | libgats-6aefa6632023c99c5b91bae0e099df94fa69d890.tar.gz libgats-6aefa6632023c99c5b91bae0e099df94fa69d890.tar.bz2 libgats-6aefa6632023c99c5b91bae0e099df94fa69d890.tar.xz libgats-6aefa6632023c99c5b91bae0e099df94fa69d890.zip |
GatsCon now supports proxying, and way better than qtbenc ever did. Not only
does it proxy, but you can inject your own messages going to the client or host.
Pretty slick, really. Next up, reading and creating files.
Diffstat (limited to 'src/gatscon/proxywidget.h')
-rw-r--r-- | src/gatscon/proxywidget.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/gatscon/proxywidget.h b/src/gatscon/proxywidget.h new file mode 100644 index 0000000..0ef1fd4 --- /dev/null +++ b/src/gatscon/proxywidget.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #ifndef PROXY_WIDGET_H | ||
2 | #define PROXY_WIDGET_H | ||
3 | |||
4 | #include "ui_proxywidget.h" | ||
5 | |||
6 | namespace Gats | ||
7 | { | ||
8 | class Object; | ||
9 | }; | ||
10 | |||
11 | class ProxyWidget : public QWidget, protected Ui::ProxyWidget | ||
12 | { | ||
13 | Q_OBJECT; | ||
14 | public: | ||
15 | ProxyWidget( QWidget *pParent, int iPortIn, const QByteArray baHost, | ||
16 | int iPortOut ); | ||
17 | virtual ~ProxyWidget(); | ||
18 | |||
19 | public slots: | ||
20 | void sendToClient(); | ||
21 | void sendToServer(); | ||
22 | void clientRecv( Gats::Object *pObj ); | ||
23 | void hostRecv( Gats::Object *pObj ); | ||
24 | void gotConnection(); | ||
25 | |||
26 | private: | ||
27 | class ProxyThread *pPrx; | ||
28 | }; | ||
29 | |||
30 | #endif | ||