LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-29-2004, 10:57 AM   #1
ondrej.ilcik
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
Cross-platform interprocess communication


hi there,

i need to write a front-end GUI application (c++) for my console app, but it must be platform independent (it have to run on *nix and Win) and i am not sure what kind of interprocess communication to use (signals, fifos, sockets, semaphores). could you help me? (it is a week i found out there is something like "fifo" or "socket", so please dont use any special terms)

thanks in advance
 
Old 01-29-2004, 10:32 PM   #2
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
For platform independent communication, you have to use sockets for the best results. Try this first --> http://www.ecst.csuchico.edu/~beej/guide/net/

For advanced info on interprocesses in linux, you can check this out --> http://www.advancedlinuxprogramming.com/

And if you have any doubts, post here ...
 
Old 01-30-2004, 04:04 AM   #3
synna
Member
 
Registered: Jan 2004
Posts: 40

Rep: Reputation: 15
If you have library for the gui there's maybe some class available for Socket (I'm thinking about QT or wxWindow) that can simplify you a lot the programming of socket (even if socket is normaly almost plateform indenpendant).

The main problem with socket in platform indenpendant programming is that you usually need thread and this is not platform indenpendant.

If you want a library you can take a look at OpenTop for socket and thread (GPL)
OpenTop
or at boost
Boost library

Both are cross-platform


You can also use STDIN and STDOUT (or STDERR) but this is annoying if you have an only console mode.

Hope this help
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best cross platform ide? bobwall Programming 3 11-10-2011 03:16 PM
cross platform c++ nyomon Programming 6 07-03-2005 03:24 PM
Cross Platform Shell narusegawa Linux - Software 2 06-24-2004 08:50 AM
Interprocess Communication in linux. hemanexp Linux - Software 0 01-16-2004 06:34 AM
Cross Platform biggiefatts Linux - Software 4 06-04-2002 03:00 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:19 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
Open Source Consulting | Domain Registration