LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Sockets - A Packet Snooper With A QT4 GUI (Req's libLQ-qt/mc2 dload) Part 2

Posted 01-19-2013 at 06:58 AM by rainbowsally
Updated 09-04-2013 at 08:52 PM by rainbowsally (an afterthought)

Continuing from here.
http://www.linuxquestions.org/questi...-part-1-35273/

[screenshot]
http://rainbowsally.net/rainbowsally...et-snooper.png

Note: Corrected commandline for launching the server Jan 20, 2013 -rs

An afterthought:
While poking around in this stuff I found this warning in the linux/if_ether.h header.
...
Member
Posted in Uncategorized
Views 477 Comments 0 rainbowsally is offline
Old

Sockets - A Packet Snooper With A QT4 GUI (Req's libLQ-qt/mc2 dload) Part 1

Posted 01-19-2013 at 06:54 AM by rainbowsally
Updated 09-04-2013 at 08:51 PM by rainbowsally (added link to part 2)

Sockets - A Packet Snooper With A QT4 GUI (Req's libLQ-qt/mc2 dload) Part 1

Today's feature is
  • Running a packet snooper in an lqMiniTerm 'run' loop function.

[Note: the lqMiniTerm is evolving a bit and will continue to evolve for a while as we experiment and discover things that come up over and over that are easier to address in the mini terminal than in the main() file's code. Currently term_printf() is a candidate for becoming a miniterm feature. Find out why! :-) ]...
Member
Posted in Uncategorized
Views 516 Comments 0 rainbowsally is offline
Old

mini-term in qt4

Posted 01-17-2013 at 03:34 AM by rainbowsally
Updated 09-04-2013 at 08:53 PM by rainbowsally

mini-term in qt4.

Today's features:
  • A simple terminal-like application built from a qt4 class that can be used for other stuff too.
  • The present application can run shell commands and has copy/paste (ctrl-c, ctrl-v) capabilitity.
  • Another example of the Windows-like api so that C/C++ code can run in Qt4.
  • Runs the custom code (terminal in this case) inside a QT 'exec' loop... sorta. We call it 'run()'.

Screenshot:
http://rainbowsally.net/rainbowsally...iterm-test.png...
Member
Posted in Uncategorized
Views 439 Comments 0 rainbowsally is offline
Old

QT4 -- Having trouble with qInitResouces_<appname>() ?

Posted 01-14-2013 at 03:46 AM by rainbowsally
Updated 01-14-2013 at 04:01 AM by rainbowsally

Having trouble with qInitResouces_<appname>()?

Try this.
Code:
#ifdef Q_INIT_RESOURCE
#undef Q_INIT_RESOURCE
#endif

#define Q_INIT_RESOURCE(name) extern void qInitResources_##name()
The version of this macro in qglobal.h could never have ever worked.

If you enjoy digging into the low level stuff, I think you'll be amused by the context of this bug. ;-)

- The Computer Mad Science Team...
Member
Posted in Uncategorized
Views 447 Comments 0 rainbowsally is offline
Old

An STL Template Experiment

Posted 12-18-2012 at 05:05 PM by rainbowsally

Today's features:
  • Getting an address of an iterator from stl.
  • Creating a foreach() macro.
  • A couple of ways to work around unwanted C++ compiler warnings.

STL is a freaking nighmare to trace in a debugger so it's not too easy to tell what goes on in them but one thing became quite clear and that is that iterators are generic pointer types internally, which makes sense since STL needs to deal with so many different types.

Here's a little test to play with to show how...
Member
Posted in Uncategorized
Views 489 Comments 0 rainbowsally is offline

  



All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration