From 6aefa6632023c99c5b91bae0e099df94fa69d890 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 17 May 2011 04:18:13 +0000 Subject: 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. --- src/gatscon/proxywidget.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/gatscon/proxywidget.h (limited to 'src/gatscon/proxywidget.h') 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 @@ +#ifndef PROXY_WIDGET_H +#define PROXY_WIDGET_H + +#include "ui_proxywidget.h" + +namespace Gats +{ + class Object; +}; + +class ProxyWidget : public QWidget, protected Ui::ProxyWidget +{ + Q_OBJECT; +public: + ProxyWidget( QWidget *pParent, int iPortIn, const QByteArray baHost, + int iPortOut ); + virtual ~ProxyWidget(); + +public slots: + void sendToClient(); + void sendToServer(); + void clientRecv( Gats::Object *pObj ); + void hostRecv( Gats::Object *pObj ); + void gotConnection(); + +private: + class ProxyThread *pPrx; +}; + +#endif -- cgit v1.2.3