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/clientwidget.cpp | |
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/clientwidget.cpp')
-rw-r--r-- | src/gatscon/clientwidget.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/gatscon/clientwidget.cpp b/src/gatscon/clientwidget.cpp index 6039035..0ea04a3 100644 --- a/src/gatscon/clientwidget.cpp +++ b/src/gatscon/clientwidget.cpp | |||
@@ -1,5 +1,4 @@ | |||
1 | #include "clientwidget.h" | 1 | #include "clientwidget.h" |
2 | #include "connectdlg.h" | ||
3 | #include "clientthread.h" | 2 | #include "clientthread.h" |
4 | 3 | ||
5 | #include "gatstotree.h" | 4 | #include "gatstotree.h" |
@@ -11,23 +10,17 @@ | |||
11 | 10 | ||
12 | using namespace Bu; | 11 | using namespace Bu; |
13 | 12 | ||
14 | ClientWidget::ClientWidget( QWidget *pParent ) : | 13 | ClientWidget::ClientWidget( QWidget *pParent, const QByteArray &baHost, |
14 | int iPort ) : | ||
15 | QWidget( pParent ) | 15 | QWidget( pParent ) |
16 | { | 16 | { |
17 | setupUi( this ); | 17 | setupUi( this ); |
18 | 18 | ||
19 | { | 19 | pCli = new ClientThread( this, baHost, iPort ); |
20 | ConnectDlg dlg( this ); | ||
21 | dlg.exec(); | ||
22 | |||
23 | sio << "Connect: " << dlg.getHostname().constData() << ":" | ||
24 | << dlg.getPort() << sio.nl; | ||
25 | |||
26 | pCli = new ClientThread( this, dlg.getHostname(), dlg.getPort() ); | ||
27 | } | ||
28 | pCli->start(); | ||
29 | connect( pCli, SIGNAL(recv( Gats::Object *)), | 20 | connect( pCli, SIGNAL(recv( Gats::Object *)), |
30 | this, SLOT(recv(Gats::Object *)), Qt::QueuedConnection ); | 21 | this, SLOT(recv(Gats::Object *)), Qt::QueuedConnection ); |
22 | |||
23 | pCli->start(); | ||
31 | } | 24 | } |
32 | 25 | ||
33 | ClientWidget::~ClientWidget() | 26 | ClientWidget::~ClientWidget() |