LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   what is the equivalent of ofstream & ifstream on network communication? (https://www.linuxquestions.org/questions/programming-9/what-is-the-equivalent-of-ofstream-and-ifstream-on-network-communication-18280/)

Hano 04-11-2002 08:09 AM

what is the equivalent of ofstream & ifstream on network communication?
 
Hi,

what is the most like equivalent of iofstream functions for:

1 to shared memory (for interproccess communications)
2 network (between processes on diferent processors across a LAN / cluster )

barazor 04-19-2002 01:10 PM

my guess is that you would have to write those yourself. ifstream and ofstream are part of the C++ standard library, and the standard library tends to not have functions and classes that would depend on the operating system(im guessing)

zmedico 04-19-2002 01:42 PM

Java http://java.sun.com is great language for writing programs that use multiple threads and communicate over the network (via sockets). Plus, the "write once, run anywhere" concept allows you to run your programs on multiple operating systems and hardware.

Java has two complementary classes called InputStream and OutputStream. You can use these to move data from place to another , such as through network sockets.


All times are GMT -5. The time now is 10:20 PM.