Re: [Mono-list] Questions on Mono.Unix.Pipes

2012-12-18 Thread Ian Norton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17/12/12 20:37, mickeyf wrote: Sorry, I'm not understanding your response. Are you suggesting I somehow read a byte array directly rather than sending it back via a pipe (which I'm doing now)? You mentioned you had a shared library that opens a

Re: [Mono-list] Questions on Mono.Unix.Pipes

2012-12-18 Thread mickeyf
the mono documentation that I have found is missing or incomplete. ..Or maybe it's just a Monday morning and I haven't had any coffee yet. Thank you - very helpful. It's never clear to me how much of the MSDN documentation I can rely on to apply to Mono. Windows .NET doesn't actually have

Re: [Mono-list] Questions on Mono.Unix.Pipes

2012-12-18 Thread mickeyf
Perhaps I could have been clearer - my library is already an unmanaged code written in C. Are you suggesting a byte array as a function return value? Not sure how that would work - this is data asynchronously arriving from an outside source that needs to be decoded and then passed up to the main

[Mono-list] Questions on Mono.Unix.Pipes

2012-12-17 Thread mickeyf
I have some questions about Mono.Unix.Pipes. I have been using this with some success, but I am relatively new to Linux, and the mono documentation that I have found is missing or incomplete. The Linux manual pages docs on pipes are clearly referring to a different animal than this.

Re: [Mono-list] Questions on Mono.Unix.Pipes

2012-12-17 Thread Ian Norton
Sounds like for you it would be easier to just pinvoke a byte array. I guess it depends how much data is involved. On Mon, Dec 17, 2012 at 05:05:07PM +, mickeyf wrote: I have some questions about Mono.Unix.Pipes. I have been using this with some success, but I am relatively new to Linux,

Re: [Mono-list] Questions on Mono.Unix.Pipes

2012-12-17 Thread mickeyf
Sorry, I'm not understanding your response. Are you suggesting I somehow read a byte array directly rather than sending it back via a pipe (which I'm doing now)? I'm looking into unix domain sockets as an alternative, but I struggling to find documentation and examples for that also. -- View

Re: [Mono-list] Questions on Mono.Unix.Pipes

2012-12-17 Thread Bill Six
Since you are relatively new to Linux, write two simple programs in C which use pipes to communicate (the first program is the producer, the second is the consumer). You'll need fork, exec, and probably dup2. Once done, porting the consumer to Mono is straightforward. (Assuming you know C and

Re: [Mono-list] Questions on Mono.Unix.Pipes

2012-12-17 Thread mickeyf
I have long had a working C# app that consumes data piped from the C library that I have written. This has nothing to do with forking a new process or child processes. What I am looking for is the detailed and complete documentation on correct use of Mono.Unix.UnixPipes - the documentation for

Re: [Mono-list] Questions on Mono.Unix.Pipes

2012-12-17 Thread Jonathan Pryor
On Dec 17, 2012, at 12:05 PM, mickeyf mic...@thesweetoasis.com wrote: I have been using this with some success, but I am relatively new to Linux, and the mono documentation that I have found is missing or incomplete. Is it? http://docs.go-mono.com/?link=T%3aMono.Unix.UnixPipes