Re: Passing file descriptors between processes in .NET

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Steve Jones" <SteveJones@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DB66FD69-D636-4958-BE70-E23D0BDB9EA4@xxxxxxxxxxxxxxxx
Can this be done? I know that using marshalling you can send objects
between
processes and/or AppDomains but what about sending file descriptors? In
Unix
(sorry) you do it with a special setup socket call and let the OS kernel
do
it's black magic to "convert" the file descriptor to something the
receiving
process understands.

But under WinXP and .NET 2.0+ (we're using 3.0 actually) is there similar
"black magic"? All my Google searches have only lead me to Unix answers.
....

To use handle in other process, you must call windows native API
(DuplicateHandle):
http://msdn2.microsoft.com/en-us/library/ms724251.aspx

Between appdomains same handle should work I guess, because it's hosted in
the same process. Not sure though, I've never tested it.

Regards,
Goran


.



Relevant Pages

  • Re: [Hand Holding] was [ANNOUNCE] New mailing list: fedora-selinux
    ... It should be common knowledge, ... I've been working with Unix since 1988. ... variety of software is vastly greater for Linux than for any Unix ... it would have been far easier for me to google ...
    (Fedora)
  • Re: Whew!
    ... having 'Net connectivity does not imply HTTP ... or access to sites like Google. ... What on earth is an ".exe" extension doing on a Unix executable? ...
    (soc.culture.jewish.moderated)
  • Re: lisp implementations and scaling requirements
    ... Google uses thousands of machines to run its ... a search engine isn't built by piping unix utilities. ... Google has no interest in conforming to "the UNIX philosophy". ... The system is separated into three banks of machines. ...
    (comp.lang.lisp)
  • Re: OT computer/newsgroup question on MACs
    ... I will see if I can find MT newsreader - I can work with UNIX like ... I use Macs and just use Google groups. ... I also use Unix at work. ... Mac unix has a command that you'll find ...
    (rec.equestrian)
  • Re: TROLL (was: Re: Extracting Multiple tar files)
    ... Why am I not surprised that you find that surprising? ... running yet another unix zombie. ... worst than running a windows machine so I won't connect to the internet ... I also use google form my email. ...
    (comp.os.linux.misc)