Results 1 to 8 of 8

Thread: NetworqDebugger

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default NetworqDebugger

    NetworqDebugger is a simple tool for software developers that makes it easy to debug networking applications. It provides a proxy that will sit between your software and a remote server and display the conversation between them in GUI.

    You can choose from two different modes of operation:

    SOCKS5
    This is the recommended mode of operation that is compliant with SOCKS5 protocol. Every application that supports SOCKS5 (such as most web browsers) can use it just by activating the proxy setting in the software. It is also easy to use it in case of your own Qt software - just create a network proxy settings object and use it for your application:
    Qt Code:
    1. QNetworkProxy proxy(QNetworkProxy::Socks5Proxy, "127.0.0.1", 8080));
    2. QNetworkProxy::setApplicationProxy(proxy);
    To copy to clipboard, switch view to plain text mode 

    Also remember to make sure the proxy setting for your actual sockets is correct (i.e. set to QNetworkProxy::DefaultProxy which is the default).

    Transparent proxy
    This is a fallback mechanism if you can't use SOCKS5. In this case instead of connecting to the remote end, your application connects to the proxy and the proxy makes a connection for you to the remote server based on the address you specify in NetworqDebugger. The address can be specified globally for all connections ("Default route") or can be input when the connection is being established ("Ask for route").

    For example, if you want to debug your web browser by checking how it communicates with http://www.qtcentre.org webserver, you point your browser to localhost:8080 (or whatever else address you have set for the proxy) and tell the proxy to connect to www.qtcentre.org:80.

    The application sits in the system tray and is configurable via a context menu.

    If you use NetworqDebugger, be sure to check if your firewall allows connections to the port the proxy listens on.

    Current features:
    - SOCKS5 mode of operation for TCP client-side connections,
    - transparent proxy mode of operation for TCP client-side connections,
    - configurable listening address,
    - configurable default remote address,
    - session management (application 'lives' through logouts under X11).

    Compilation:
    1. ungzip/untar
    2. run qmake
    3. run (n)make

    Feedback is welcome.
    Attached Files Attached Files
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.