LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 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

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
Old

Sockets - Bidirectional Communication IPv4/6 (terminal version)

Posted 01-17-2013 at 08:54 PM by rainbowsally

Sockets - Bidirectional Communication IPv4/6 (terminal version)

Today's features:
  • More fun with sockets.
  • Bidirectional communication using IPv4 and IPv6 socket streams (sequential).
  • Interactive. (Only interprets one command, but it's easily expandable.)
  • Terminal version for broader usefulness.

[Note the addresses in this and the previous sockets experiments (here http://www.linuxquestions.org/questi...example-35270/)...
Member
Posted in Uncategorized
Views 1009 Comments 0 rainbowsally is offline
Old

Sockets - UDP RX (recieve/transmit) terminal example

Posted 01-17-2013 at 06:15 PM by rainbowsally
Updated 01-17-2013 at 06:16 PM by rainbowsally

Sockets - UDP RX (recieve/transmit) terminal example
Today's feature:
  • A UDP file server and client using linux sockets.
  • A terminal app for those who don't have libLQ-qt and mc2.

[This is for our LQ-less friends. A libLQ version using a qt gui but NOT qt sockets should be forthcoming shortly.]

This upload is pushing the size limit but it's interesting to see how the broadcast channel is set up (in inc/broadcast-rx.c) and how the parts of the files are picked up...
Member
Posted in Uncategorized
Views 1141 Comments 0 rainbowsally is offline
Old

Simple C example for beginners and bug fix for libLQ-qt version 3.0.x

Posted 01-13-2013 at 06:57 PM by rainbowsally

Simple C example for beginners and bug fix for libLQ-qt version 3.0.x

[v.3.0 (mc2 and libLQ) will no longer be the current version(s) but it still works and we have a bug fix here that applies to all 3.0.x versions.]

Today's feature:
  • A simple C/C++ example.
  • A converter from relative paths to absolute.
  • A bug fix for the libLQ-qt/mc2 3.0 d/load.

While 'canonicalize_file_name()' is great for paths that don't have macros in them, and for dereferencing symlinks,...
Member
Posted in Uncategorized
Views 1232 Comments 0 rainbowsally is offline

  



All times are GMT -5. The time now is 10:00 PM.

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