ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
There's plenty of discussion of how to do this. One program opens a socket and waits to accept a connection on it. The other program connects. (The socket is minimally specified by an IP-address and a socket-number.)
It is also possible to use other libraries, such as TLS (formerly: SSL), which provides support for encrypted connections, such as the one your web-browser is right now using to talk to LQ. (See the "padlock" on the address-bar?) In general, I like to use existing high-level wrappers to do things. For instance, if you want to do "AJAX calls" in your C/C++ program (especially "C++"), you can Google-around (or GitHub around ...) for an existing library that will deal with this very-common requirement "soup to nuts."
Quote:
Originally Posted by A Wise Lazy-Programmer:
Actum Ne Agas: "Do Not Do A Thing Already Done."
Last edited by sundialsvcs; 11-27-2017 at 07:15 AM.
No need to reinvent the wheel. There was a little library for C/C++ that allows to sending/receiving messages from ip to ip, some 5-6 years ago in Linux. Which one could it be?
I don't think so. I guess you need to look for some examples or tutorials. You need to create a client-server application, probably using bidirectional communication.
I don't think so. I guess you need to look for some examples or tutorials. You need to create a client-server application, probably using bidirectional communication.
Now you are talking about specific applications and protocols, all of which would be built on the client/server/socket model to meet the requirements of the target protocols.
Perhaps it would be better if you would describe for us what, exactly, you are trying to achieve.
Please see the Site FAQ Welcome page, and links included there, for guidance in asking a more complete question so that others can provide help more specific to your requirements.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.