How to get stdin in C to read external data from another program?

I'm trying to set up native messaging between a browser extension and a native c program. I'm pretty sure I understand the extension side and have it ready to test; but I haven't used C since Borland Turbo C was popular.

Would you please point me to information on how the stdin and stdout in C are used to receive and post messages from the browser? I'm sure I'm just looking in the wrong places but all I've come across relate to the keyboard and files, but not input from another program. I think I can manipulate the information once I get it, but I'm stuck on the first step of the equivalent of setting up a communication port listener.

Thank you.

Read more here:

Content Attribution

This content was originally published by Gary at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: