LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > rainbowsally
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 08-06-2014 at 07:29 AM 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 1882 Comments 0 rainbowsally is offline
Old

lqNetDog Addon For Experimenters

Posted 01-24-2013 at 03:14 PM by rainbowsally
Updated 01-24-2013 at 03:18 PM by rainbowsally

lqNetDog Addon For Experimenters

Today's feature is
  • An addon for netdog-v1.2 to get and set connection properties.
  • Setting the blocking timout for the receiver (ans).

Remember, 'ans' (accept) needs to be online to receive the 'orig'inating connection, just like with a phone. Someone has to be there to accept the call or you'll never 'connect'.

We're currently simplifying sockets by combining two or three related functions in a single call using a common...
Member
Posted in Uncategorized
Views 832 Comments 0 rainbowsally is offline
Old

Sockets - The Black Box

Posted 01-23-2013 at 09:44 AM by rainbowsally

Today's feature:
  • A simple sockets debugging exercise.

Relax. It actually IS simple. You'll see.

You probably wouldn't be reading this if you didn't know how hard it is to find decent, simple example code.

Me too! And so there have been a few missteps in the previous entries (though they are adequate as demos), but it's all starting to shape up.

Yuh know, all I personally needed was a way to communicate between application so I could do stuff...
Member
Posted in Uncategorized
Views 1129 Comments 0 rainbowsally is offline
Old

Sockets - lqNetDog and lqMiniTerm (req's libLQ)

Posted 01-23-2013 at 04:17 AM by rainbowsally
Updated 08-06-2014 at 07:36 AM 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.org/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 1127 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 1360 Comments 0 rainbowsally is offline

  



All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration