LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs > rainbowsally
User Name
Password

Notices

Rate this Entry

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)
Code:
#!/bin/sh
# base64 self extractor
# file: ans-orig-gui

filename=ans-orig-gui

# don't allow user to click on the file
if ! tty >/dev/null; then
  xmessage -center "
  $(basename $0)
  must be run in a terminal 
  "
  exit
fi

# create and/or clear out tmp dir
mkdir -p $HOME/tmp/sfxz
rm -rf $HOME/tmp/sfxz/*
base64 -d << _BEOF >$HOME/tmp/sfxz/$filename.xz
/Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4O//Ln1dABcLyKfaFuKnmje4aW1zHMBYV0Q/R4VUs8wh
XryZ3+YKa8+jfteC5LsgeBE5XHPnVtqvvbDzsXUiaTZNLeujnH+gwdFSdpgLC235sG8s4zyDIuj0
b3EGf3uZ8xjhAdqeqx9Nv1/UWZ+1rZ2njcEA1ND67Lm5d3XQIAn2B2Dk+3ny6Jyd/bXtys65jaWI
TKTdbeObdI9dXaHPfU+mSCi9RSVQCavOdU1gSlXZ1dKV2ZA83d9fPdg37Kh2ZPTo4PoNTBS8k1T5
RQ2k6Edou8486qCbe78RgiMi78M08fp0ndkH1pW7IxUHQt5SRDig9YqSxcVEkUk18xTwsQO/YxLa
jnb5ZkzOto7k67gtlA/cqssRx+JFy4MJwcVP9ouAxd+4TuA0zARb6+ELHg0meX0J0QYQwb5uIbeg
ZnuxFU0tbuInpAkCJAgK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iU1s+FKnN4joJdxVEKp7fa4pj4j823BIHDexItTr6C29C2VNfQ
byAx9qER5UcEvr5nEtsSiSDDWsocvdHRCb1fkZ3iYavzTt084VIwFAPkg2MYYycM3gTJQmGvkI/I
6YQ2kd7zTarFRISxAShhzDzc0JGBhHYtodsuV9+4VS7j2qPJ9kgD5pN5yotvKTjK0CjNqqAhANMC
Fr58kcmyx707nQVWytMedLa4Pqu4Wdd9mBdkU0M0hhswgfvc8Mw9jUHHwB8wzdTYEg8bljmmlVwK
DiP7sI5euZGES8gstGsLkP5jKhu4ekeNfDYxng2F4NizObAwDX3QKp41EiXGCsj6eR/eA7B54Bfg
k7s6o5n+ZppaaBKR3yqFRjfRXj2aOWoCbmjqsdIMazuUFoucBZcQY7c28vblEcHbWDVPAxNZ9fCu
DWIFinSMSvN9FvhB+7afZEP3TQK555qBAaq0A8pYJrI9IHK15wMtVHFuGdtBinTi71+4MJrXHnKM
tLpCqBsI6kjBKhkcTgb/tl1c7j4uyLNqTzRfiXfUja7yVkdE/3GE/xripKwxfxFy+67TKhVRJR81
mIoQxrtnx02aLoSrbsOwwyYHAAAAAAClSvUoD+ADNQABmV2A4AMAdK0pVrHEZ/sCAAAAAARZWg==
_BEOF

(cd $HOME/tmp/sfxz && tar -xaf ans-orig-gui.xz)
rm -f $HOME/tmp/sfxz/ans-orig-gui.xz
 
cat << _BEOF > $HOME/tmp/sfxz/post-extract
#!/bin/sh

is_yes() # returns OK if first char is Y or y
{
  local key=`echo $1 | cut -b1 | sed 's/y/Y/; /Y/!d'`
  [ "$key" == 'Y' ] && return 0 # true
  return 1 # false
}

if [ -e ans-orig-gui ]; then
  printf "
  Overwrite existing file(s)? [N/y]:"
  read key
  if ! is_yes $key ;then
  echo "Aborting.."
    exit 0
  fi
fi

mv $HOME/tmp/sfxz/ans-orig-gui .
_BEOF

sh $HOME/tmp/sfxz/post-extract
rm -rf $HOME/tmp/sfxz/*
rmdir $HOME/tmp/sfxz 2>/dev/null || true
rmdir $HOME/tmp 2>/dev/null || true
Notes:

If you want smaller sizes change the -g3 flag to -O2 on the COMPILE line (mc2.def) and for smaller yet, try a dynamic build for libLQ.

You might be surprised. :-)

- The Computer Mad Science Team

[Thanks for the blog, lq! :-) ]
Posted in Uncategorized
Views 388 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 06:15 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