Re: Passing file descriptors between processes in .NET
- From: "Goran Sliskovic" <gsliskov@xxxxxxxxx>
- Date: Fri, 16 Mar 2007 14:34:17 +0100
"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 objectsbetween
processes and/or AppDomains but what about sending file descriptors? InUnix
(sorry) you do it with a special setup socket call and let the OS kerneldo
it's black magic to "convert" the file descriptor to something thereceiving
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
.
- Prev by Date: Problem with DateTimes in a DataSet after the DST Patch 931836
- Next by Date: events stopped working on one machine
- Previous by thread: Problem with DateTimes in a DataSet after the DST Patch 931836
- Next by thread: events stopped working on one machine
- Index(es):
Relevant Pages
|