hi...everybody..

i want to some suggestions regarding my project. my project is Networks Analyser. i am working on this project by using c programming on Linux OS.

i know that how to capture the coding of masseges by decryption algo. and i want to display this coding in the form of massege on display. But i don't know how the massege display?
i want to GUI of massege box....how can i do this...????

so plz give me ur valuable ideas and suggetions reganding this project. and if u provide the coding of this project in C lang. than it Best than Better.

if any problem regarding understandingnthe project than plz cantect me by mail. my mail Id: <email snipped>
and <email snipped>

Thanks

Dani AI

Generated

For : given that packet decoding/decryption is already solved, focus on two practical layers — capture/decrypt pipeline and a safe, responsive GUI. As noted, pick a toolkit early; because the project is in C on Linux, GTK is the most natural choice (Qt is C++ centric). As hinted, expect a learning curve for GUI work in C; plan incrementally.

Recommended architecture: pcap capture -> decrypt worker -> UI update. Use libpcap for capture and a standard crypto library (OpenSSL or libsodium) for decryption. Run capture and decryption in a background thread or process and marshal decoded strings back to the GUI thread (GTK requires UI updates on the main loop). In GTK that is typically done with g_idle_add() or by posting to a GMainContext so the main thread appends to a GtkTextBuffer or updates a GtkTreeView.

A minimal example of showing a decoded string in a GTK message dialog (GTK2/3 style) for quick testing:

#include <gtk/gtk.h>

void show_message(GtkWindow *parent, const char *text)
{
    GtkWidget *dlg = gtk_message_dialog_new(parent,
        GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
        GTK_MESSAGE_INFO,
        GTK_BUTTONS_OK,
        "%s", text);
    gtk_dialog_run(GTK_DIALOG(dlg));
    gtk_widget_destroy(dlg);
}

Practical UI notes: avoid popping a modal dialog per packet — use a scrolling log (GtkTextView) or a table (GtkTreeView) with columns (timestamp, src/dst, proto, decoded text). Batch updates and cap the buffer to prevent memory spikes at high capture rates. Add filters, export/logging, and highlight suspicious entries instead of interrupting the user with dialogs.

Cautions: do not intercept or decrypt traffic without explicit authorization; handle keys securely and sanitize all decoded output before display. Start with a small prototype (pcap capture + append-to-textview) and iterate. Useful references: GTK, libpcap, OpenSSL.

Recommended Answers

All 2 Replies

I've moved this to the C programming forums, since this seems to be more of a programming-related question.

As for your question, you'll need to provide more information here. What GUI library do you intend to use? There isn't a 'generic' GUI library for Linux like there is for Windows; you can use anything from QT to GTK to just plain X. Oh, and plz stp tking l1ke ur 3 yrs old!

What is your network analyzer supposed to do, it just needs to decode the packet and display ? Coding GUI is little difficult in C, you need to ramp on how to use GTK as well.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.