473,561 Members | 3,076 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

streams across applications

What is the best method for passing streams between applications? I
could, of course, write the contents of the stream to a file and pick it
up on the other end, but with the amount of data I'll be pushing around,
that really isn't all that feasible.

I know that MemoryStreams work well for this sort of thing, but I'm not
sure how to read from a stream in a separate application.

Lee Crabtree
Feb 20 '06 #1
3 1084
Hello, Lee!

LC> I know that MemoryStreams work well for this sort of thing, but I'm not
LC> sure how to read from a stream in a separate application.

Application specific memory is specific for the application, it means that other apps cannot write/read directly to this memory.

OTOH you can use MMF ( memory mapped file ) to have the functionality you desire.
Also if you want stream functionality you can use NetworkStream.
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Feb 20 '06 #2
You could use Remoting, or a MemoryMappedFil e stream. MMF requires wrapping
the native win32 API. but you can find some pretty good C# implementations
of same. You can also use Named Pipes, which also requires API calls, and
there is at least one decent C# implementation of that too.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Lee Crabtree" wrote:
What is the best method for passing streams between applications? I
could, of course, write the contents of the stream to a file and pick it
up on the other end, but with the amount of data I'll be pushing around,
that really isn't all that feasible.

I know that MemoryStreams work well for this sort of thing, but I'm not
sure how to read from a stream in a separate application.

Lee Crabtree

Feb 20 '06 #3
Named pipes are supported through the System.Runtime. Remoting.Channe ls.Ipc
namespace classes in V2 of the framework.

Willy.
"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com > wrote in message
news:FA******** *************** ***********@mic rosoft.com...
| You could use Remoting, or a MemoryMappedFil e stream. MMF requires
wrapping
| the native win32 API. but you can find some pretty good C#
implementations
| of same. You can also use Named Pipes, which also requires API calls, and
| there is at least one decent C# implementation of that too.
|
| Peter
|
| --
| Co-founder, Eggheadcafe.com developer portal:
| http://www.eggheadcafe.com
| UnBlog:
| http://petesbloggerama.blogspot.com
|
|
|
|
| "Lee Crabtree" wrote:
|
| > What is the best method for passing streams between applications? I
| > could, of course, write the contents of the stream to a file and pick it
| > up on the other end, but with the amount of data I'll be pushing around,
| > that really isn't all that feasible.
| >
| > I know that MemoryStreams work well for this sort of thing, but I'm not
| > sure how to read from a stream in a separate application.
| >
| > Lee Crabtree
| >
Feb 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3462
by: George Hester | last post by:
In one Application (2) the client is redirected to a Logon ASP in a different Application (1). A Session Variable is made in Application 2 which needs to be recognized in Application 1. Can I do that in Windows 2000 SP3 IIS5 no .NET Framework? Thanks. -- George Hester __________________________________
10
13821
by: Roy Smith | last post by:
I've been running some benchmarks to compare streams and stdio performance. I've always suspected stdio was faster, but was astonished to discover how much faster. I timed the following running into /dev/null, as well as the same loop using printf(). int main () { for (int i = 0; i < 1000 * 1000; ++i) { cout << "i = " << i << '\n'; }
3
3476
by: Tron Thomas | last post by:
What does binary mode for an ofstream object do anyway? Despite which mode the stream uses, operator << writes numeric value as their ASCII representation. I read on the Internet that it is possible to change the behavior of operator << so it will stream numeric values as their actual values when an ofstream is in binary mode. I did not,...
4
2040
by: Cowboy \(Gregory A. Beamer\) | last post by:
Background: ------------- The idea started as a single sign on type of application. Having tested it before, I knew we could institute single sign on using the same Authentication Cookie name (in this case "AuthenticationCookie" -- yeah, original, I know) and the same machine keys for the applications. <authentication mode="Forms"> <forms...
7
7767
by: Doug | last post by:
An ASP.NET session cookie set on "www.mydomain.com" can not be accessed on "search.mydomain.com"; hence, a new session and cookie are being created on every sub-domain. This is occuring because ASP.NET always sets the Session cookie domain to the full domain (e.g. "www.mydomain.com") instead of the parent domain (e.g. "mydomain.com") The...
2
2062
by: noone | last post by:
Something I've noticed has me annoyed. consider this ostream o; o << scientific << setw(15) << setprecision(5) << right << a << b << c << endl;
2
1411
by: Ryan | last post by:
I am new to .net 2.0 and was wondering how best to leverage its membership capabilities to handle a situation similar to the following: We have a 4 web applications belonging to 3 departments. Each of these is owned by a particular department. Access to the systems can be shared across department, but access is controlled within each...
4
3590
by: =?Utf-8?B?RmFyaWJh?= | last post by:
It know that we can use the following method http://msdn2.microsoft.com/en-us/library/eb0zx8fc.aspx to form authenticate across multiple applications. I have created an asp.net application that supports form authentication. My application is going to be called by another legacy application (HTML) which does the initial...
4
1646
by: valentin tihomirov | last post by:
Noramlly, we have methods like: void execute(string login, string password, Stream inputStream) { if (login:password is wrong) throw new Exception("login failed"); // forward or process the stream in chunks }
0
7568
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7858
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8085
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7614
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5185
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3598
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2066
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1180
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
892
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.