Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 04-11-2002, 09:09 AM   #1
Registered: Sep 2001
Location: Venezuela, Caracas
Distribution: RedHat 9.0
Posts: 196

Rep: Reputation: 30
what is the equivalent of ofstream & ifstream on network communication?


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 )
Old 04-19-2002, 02:10 PM   #2
Registered: Dec 2001
Distribution: slack 9.1
Posts: 44

Rep: Reputation: 15
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)
Old 04-19-2002, 02:42 PM   #3
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Java 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.

Last edited by zmedico; 04-21-2002 at 02:13 AM.


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
pilot-link & Tungsten communication problems everbloom Linux - Hardware 4 08-27-2005 04:56 PM
Problems with ifstream/ofstream kornerr Programming 2 07-04-2005 12:31 PM
openssl is for communication b/w computers on the network. abdullahgee Linux - Networking 1 06-04-2004 08:04 PM
Slackware equivalent of Debian's modconf & rcconf? johnMG Slackware 4 09-26-2003 11:37 PM
Crontab 3 vs java 1.4.2 & socket-communication P-hier Linux - Networking 0 07-18-2003 03:14 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration