LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Sockets -- A Chat Server with a non-blocking 'select' (i.e., GUI ready)

Posted 01-27-2013 at 06:47 AM by rainbowsally
Updated 09-04-2013 at 08:50 PM by rainbowsally (fix bad edit)

Sockets -- A Chat Server with a non-blocking 'select' (i.e., GUI ready)

[GUI-ready but no GUI in this version. Terminal only.]

Today's feature is
  • A chat server.
  • Non blocking 'select' (which we need for importing into an lqMiniTerm).
  • A web link to more generic sockets code that I wish I had found earlier.
  • Tarred up example code with makefile for all the code examples at bgnet.

Here's a chat-server you can use to communicate between folks on your computer...
Member
Posted in Uncategorized
Views 535 Comments 0 rainbowsally is offline
Old

Sockets - lqNetDog and lqMiniTerm (req's libLQ)

Posted 01-23-2013 at 04:17 AM by rainbowsally
Updated 09-04-2013 at 08:52 PM by rainbowsally (bum link, note on sizes)

Sockets - lqNetDog and lqMiniTerm (req's libLQ)

Today's feature is:
  • lqNetDog and lqMiniTerm running sockets in a Qt gui.
  • C-style functions, Windows style conversion of slots to C funcs.
  • I/O in one terminal widget (still very simple).

Here's a screenshot.
http://rainbowsally.net/rainbowsally...ui-800x600.png

Here's a self extractor for the files.

file: ans-orig-gui.sfxz
purpose: utility (executable)...
Member
Posted in Uncategorized
Views 359 Comments 0 rainbowsally is offline
Old

Sockets - The lqNetDog mini-lib for socket connections

Posted 01-22-2013 at 06:40 AM by rainbowsally
Updated 01-22-2013 at 10:52 AM by rainbowsally (moved some includes)

[Bad logic level in netdog_request() presumably fixed. -rs]

Sockets - The NetDog mini-lib for socket connections

Today's feature is:
  • NetDog. :-)
  • A simple non-blocking ans (listen) and orig (connect) example.
  • Minor bundling of socket functions to greatly simplify a successful connection.

Complicating this stuff is easy. Simplifying it is the hard part.

The non-blocking setup here simplifies coding for a gui which needs to constantly be...
Member
Posted in Uncategorized
Views 502 Comments 0 rainbowsally is offline
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 432 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 452 Comments 0 rainbowsally is offline

  



All times are GMT -5. The time now is 06:54 PM.

Main Menu

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