General Haiku Discussion

Here you can talk about anything relating to Haiku.

Developer documentation for async networking

Forum thread started by fil on Fri, 2013-05-31 11:54

Hi all,

I'm looking of any documentation related to async network programming under Haiku.
Unfortunately I can't find any that explain how to organize fully async multi-thread ... say client application.
For example, I want to develop a client application, with one additional thread to receive and send (and connect/disconnect of course) RAW data through TCP connection to a remote server.
Host protocol is not relevant.
Such application should have following properties :
1. Handle async connect and gracefull disconnect.
2. Not killing communication thread on app exit.
3. Send data and control operations between app & communication thread
4. This thread to wait for messages (socket or app) on only one place, no matter if socket is in connection operation or receive or send or gracefull disconnect or else.

I'm aware of Haiku messaging,so question here is about socket (or whatever it is called).
For example in windows I have a meaning for thread to wait for multiple events, some of which can be from sockets, some control messages from host application.

NetworkKit is very poorly described (of what I've found), Unix/BSD socket library by default is ugliest thing in the world....and more importantly its separate lib from Haiku NetworkKit.
At best one can mix posix threads with socket library to accomplish this.

So I'll be pleased if someone have documents that explain in more detail how to use NetworkKit (or else but not socket/pthread lib please) to accomplish this.

10x,
Filip

help compiling gnash 0.8.10 on gcc4hybrid nightlies

Forum thread started by Kev on Wed, 2013-05-29 18:37

I'm not usually one to compile things myself, so I'm surprised I got this far, but now I'm in a bit over my head. A long story of obtaining and/or compiling various dependencies has gotten me to here:

~/Desktop/gnash-0.8.10> ./configure --enable-media=ffmpeg --enable-gui=qt4 --without-gconf --with-boost-incl=/boot/usr/local/include --with-boost-lib=/boot/usr/local/lib --enable-renderer=opengl --disable-plugins --with-gif-incl=/boot/home/Desktop/giflib-5.0.4/lib

... (many warnings and a few recommendations, but I managed to get it not to give errors anymore, so I'm told I should be able to make it now.)

~/Desktop/gnash-0.8.10> make
make  all-recursive
make[1]: Entering directory `/boot/home/Desktop/gnash-0.8.10'
Making all in desktop
make[2]: Entering directory `/boot/home/Desktop/gnash-0.8.10/desktop'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/boot/home/Desktop/gnash-0.8.10/desktop'
Making all in libdevice
make[2]: Entering directory `/boot/home/Desktop/gnash-0.8.10/libdevice'
  CXX    libgnashdevice_la-DeviceGlue.lo
  CXXLD  libgnashdevice.la
make[2]: Leaving directory `/boot/home/Desktop/gnash-0.8.10/libdevice'
Making all in libbase
make[2]: Entering directory `/boot/home/Desktop/gnash-0.8.10/libbase'
  CXX    libgnashbase_la-AMF.lo
  CXX    libgnashbase_la-arg_parser.lo
  CXX    libgnashbase_la-BitsReader.lo
  CXX    libgnashbase_la-ClockTime.lo
  CXX    libgnashbase_la-curl_adapter.lo
In file included from curl_adapter.cpp:30:0:
utility.h:66:8: error: using typedef-name 'std::wstring' after 'class'
In file included from /boot/develop/abi/x86/gcc4/tools/gcc-4.7.3-haiku-130513/lib/gcc/i586-pc-haiku/4.7.3/../../../../include/c++/4.7.3/string:41:0,
                 from NetworkAdapter.h:26,
                 from curl_adapter.cpp:29:
/boot/develop/abi/x86/gcc4/tools/gcc-4.7.3-haiku-130513/lib/gcc/i586-pc-haiku/4.7.3/../../../../include/c++/4.7.3/bits/stringfwd.h:70:33: note: 'std::wstring' has a previous declaration here
In file included from curl_adapter.cpp:34:0:
GnashSleep.h: In function 'void gnash::gnashSleep(size_t)':
GnashSleep.h:41:69: warning: narrowing conversion of '(useconds / 1000000ul)' from 'size_t {aka long unsigned int}' to 'time_t {aka long int}' inside { } is ill-formed in C++11 [-Wnarrowing]
GnashSleep.h:41:69: warning: narrowing conversion of '((useconds % 1000000ul) * 1000ul)' from 'long unsigned int' to 'long int' inside { } is ill-formed in C++11 [-Wnarrowing]
In file included from /boot/usr/local/include/boost/system/system_error.hpp:14:0,
                 from /boot/usr/local/include/boost/thread/exceptions.hpp:22,
                 from /boot/usr/local/include/boost/thread/pthread/mutex.hpp:11,
                 from /boot/usr/local/include/boost/thread/mutex.hpp:16,
                 from log.h:30,
                 from curl_adapter.cpp:31:
/boot/usr/local/include/boost/system/error_code.hpp: At global scope:
/boot/usr/local/include/boost/system/error_code.hpp:214:36: warning: 'boost::system::posix_category' defined but not used [-Wunused-variable]
/boot/usr/local/include/boost/system/error_code.hpp:215:36: warning: 'boost::system::errno_ecat' defined but not used [-Wunused-variable]
/boot/usr/local/include/boost/system/error_code.hpp:216:36: warning: 'boost::system::native_ecat' defined but not used [-Wunused-variable]
make[2]: *** [libgnashbase_la-curl_adapter.lo] Error 1
make[2]: Leaving directory `/boot/home/Desktop/gnash-0.8.10/libbase'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/boot/home/Desktop/gnash-0.8.10'
make: *** [all] Error 2

At this point, I need some guru and/or developer help. This is on hrev45710gcc4hybrid. My end goal is to try playing the newly released Word Realms on Haiku. (It works on XBMCbuntu and Windows 7 with Adobe Flash Player SA (standalone), and the original kickstarter for it claimed it would be able to work with gnash, so I'd like to try that on Haiku, even if that's no longer the preferred/advertised method of playing on *nix, because...I don't see any other options. :) )

Thanks for any pointers,
Kev

Daiku v2.0 for Haiku - VisualBE++ / Delphi-Like GUI Creator / RAD

Forum thread started by streak on Sat, 2013-05-25 12:59

Just received email from SHINTA with new 2.0 version of Daiku RAD [similar to VisualBe++ and Delphi]

Info:
http://shinta0806be.ldblog.jp/archives/7893907.html#English

Quick Help:
http://www.k5.dion.ne.jp/~shinta86/help/Daiku_en.html

Download:
http://www.k5.dion.ne.jp/~shinta86/test/Daiku20DR.zip
http://www.k5.dion.ne.jp/~shinta86/test/Daiku20DRSrc.zip

ScreenShot:
http://www.k5.dion.ne.jp/~shinta86/help/HelpParts/EditingEvent.png

BTW. SHINTA said that Daiku will need a maintainer as well.

cheers
StreaK

Backlight on CD Boot

Forum thread started by unixrunner on Thu, 2013-05-23 00:57

Hi there, first post here. I've been using Haiku on a desktop PC with absolutely no problems. I've been wanting to install it on my laptop computer too (HP DV1000 Special Edition) but when I insert the CD to boot Haiku, the screen on my laptop starts to glow brighter and brighter, almost like the backlight is going to just burn right out of the screen. Is there any kind of fix for this? Many thanks.

Haiku in http://alternativeto.net

Forum thread started by dzaragoza on Wed, 2013-05-22 02:12

Hello

I've been adding applications that run in Haiku to http://alternativeto.net

I think it is interesting to know alternative to applications in Windows/Linux that run in Haiku, to increase ease of use.

The list of applications tagged as available for Haiku are here: http://alternativeto.net/?platform=haiku most of them added by myself :)

It will be nice if anyone wish to add other applications to the list, lets make Haiku more visible!

Regards

BeOS Archeo Project - Saving old beos apps sources

Forum thread started by streak on Sun, 2013-05-19 04:30

I would like to introduce my small project called BeOS Archeo Project in wich im trying to preserve old apps with never released sources for Haiku community. If anyone interested in this project feel free to contact me. The more people will be involved more apps with never released sources we could preserve for haiku future..

Here's one of project i preserved with sources yesterday:

[Re-Copy fro HaikuWare]

Another App preserved with sources, and even more.. With the version never released to the public. Ladies and gentleman. Here's [b]Space Monitor v1.4b[/b], which is higher version than officially released to BeBts [v1.3].

Thanks to original App Author, Mr. [b]Thomas Thiriez[/b], im not only granted sources for original 1.3 bebits version but for whole branch even with v1.4b version. Of course Space Monitor works like a charm on haiku without any changes or recompilations.

[IMG]http://i44.tinypic.com/30to486.png[/IMG]

No frills installation success - Dell Inspiron E1505

Forum thread started by tuorum on Fri, 2013-05-17 19:34

After installing Fedora and leaving a little primary partition to install Haiku, installation was a breeze from a USB drive. Once installed, rebooted into Fedora to fix up grub2 and rebooted again, selecting the Haiku boot option. Poof. Intel WiFi works fine, ati video looks really great. Network seems to hiccup every so often during DNS lookups, but works ok. Need to find more software.

Syndicate content