LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-12-2008, 02:12 PM   #1
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Rep: Reputation: 30
C++ windows server but linux client app remotely invoking methods


Hi
In .net or java there's is remote method invocation. In the .net world it's called remoting. I was wondering does C++ have a eqivulent or do I have to use socket programming? I assume socket programming in C++ isn't that difficult? I need a windows server but a linux client.
 
Old 10-12-2008, 04:12 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 87
in Java, it's called RMI, (remote method invocation). I don't think a similar thing exists for C++, but I may be proved wrong, after all, I'm not a programmer per se.
 
Old 10-12-2008, 08:09 PM   #3
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Quote:
Originally Posted by linuxmandrake View Post
Hi
In .net or java there's is remote method invocation. In the .net world it's called remoting. I was wondering does C++ have a eqivulent or do I have to use socket programming? I assume socket programming in C++ isn't that difficult? I need a windows server but a linux client.
C++ doesn't actually have socket programming. It has files, but they're far from ideal for use with sockets. You normally need to use an OS-dependent library to use sockets with C++ (but boost would be a likely place for a portable library.) In the case of Linux, you need to use libc and the POSIX API socket functions. It isn't at all related to C++, but you can set up the routines in classes (I've never done it because C doesn't scare me.) I don't know how the higher-level languages deal with sockets, so I don't know what sort of automation you're expecting. I can tell you one thing for sure: without a third-party library, using sockets in C++ on Linux isn't as pretty as any given built-in in Java, and it's also comparatively easy to do something wrong.
ta0kira
 
  


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
How can I remotely access CVS server from client on LINUX? Muhammad Idreees Linux - Newbie 4 08-09-2012 12:17 PM
Invoking a shell script remotely. niks27 Linux - Newbie 1 10-11-2007 07:22 AM
can not connect to my pureftp server from Linux client, but i can from windows client bonito SUSE / openSUSE 5 03-16-2005 09:45 PM
howto change samba password remotely from a windows client? yafrank Linux - Software 2 01-21-2005 12:14 PM
Linux app-server to server StarOffice to Windows Clients: Need advice biosx Linux - Networking 3 08-14-2002 10:14 AM

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

All times are GMT -5. The time now is 07:26 AM.

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