LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2009, 09:17 AM   #1
arnieterm
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
C++ remoting on embedded linux


Hi all
I am new to both linux and c++[basically from microsoft .net background]. I have to develop a remoting component for an embedded linux device that has support for wifi, z-wave [can plug z-wave enabled usb controller].

Problem domain
*******************
The device is basically a router [Sercomm router] that needs to host an application that can communicate with a service on the internet through tcp connections. Is it possible to create such applications using c++ on linux? Through googling I have seen about CORBA with c++ on linux. But still than I would like to know whether such a remotable/distributed application can be created for this device. The connection between this application and remote service need to be of persistent type.
Its very urgent for me to know about this before starting work on it
Can anyone have any idea on this?

Thanks
Arnieterm
 
Old 12-17-2009, 09:44 AM   #2
migmar
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
New to Linux but not to Unix

Arnieterm,
Yes, you can. Depending on the environment you can even use perl, python, or ruby. Google "linux socket programming" for implementation options. I have written socket Windows services, but not on linux yet.

I hope this helps,
Migmar

Last edited by migmar; 12-17-2009 at 09:57 AM.
 
Old 12-17-2009, 11:31 AM   #3
AngTheo789
Member
 
Registered: Sep 2009
Posts: 110

Rep: Reputation: 24
WROX Publishing has several books related to Linux programming and some time ago some of sample code was even available on their site, containing samples for client-server and socket programming. You should check if the code is still there. Otherwise you will surely find tons of code snippets when googling with the proper keywords.
 
Old 12-19-2009, 07:38 AM   #4
arnieterm
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks a lot for your replies.
I am still researching on this. I have seen serveral links that specifies usage of CORBA with c++ on linux. But for an embedded linux device, is it possible to have a continuous connection with remote server so that the device can receive commands from the servier.
Thanks
Arnieterm
 
Old 12-20-2009, 07:43 PM   #5
migmar
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
Arnieterm,

It seems that you are fixed on using CORBA, but CORBA is complex and has unwanted overhead. Why do you need a constant connection? One way to implement this is to configure your device as a Web server using httpd, nginx or even apache (apache has a bigger footprint that the other two). Once configured as a Web server you can configure a Web application using PHP, Perl, Ruby, or Java among others. This Web application in turn can execute functions on behalf of the clients. Clients can connect to your device over HTTP, and the device being a Web server it's always listening. The advantage of designing such solution is that all the communications infrastructure is already built for you (open source Web server and application stack). You only have to worry about coding your application specific components, and configuring all the pieces properly. Without knowing your requirements is hard to provide a more details solution.

Thank you,
Migmar
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Xpert in 8-16 bit microcontroller embedded system now inclining toward embedded linux priyadarshan Linux - Embedded & Single-board computer 2 02-12-2009 05:28 AM
LXer: Embedded Linux as Dependable for Developers as RTOSes, says Embedded Market For LXer Syndicated Linux News 0 01-23-2008 12:40 PM
More Windows to Linux Remoting meping Linux - Software 21 09-29-2005 01:44 AM
remoting from windows to linux meping Linux - Software 3 09-23-2005 08:51 AM


All times are GMT -5. The time now is 12:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration