Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.