Re: IPC in C#
- From: "Vadym Stetsyak" <vadym_s@xxxxxxx>
- Date: Fri, 27 Jan 2006 20:15:35 +0200
Socket.BeginReceive/EndReceive and Socket.BeginSend/EndSend internally use
ThreadPool's completion port threads. That is WSASend/WSAReceive API is
used in the overlapped io manner.
So, imo, there is no need to P/Invoke more as there is already P/Invoke when
working with sockets :8-)
Some IPC approaches in .NET ( MMF )
( http://www.codeproject.com/dotnet/globalcache.asp )
(
http://www.dotnetconsult.co.uk/weblog/permalink.aspx/32c3abfb-bac9-4e19-bbc5-39ca338d906d )
--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com
"Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx> wrote in message
news:OB4Lad1IGHA.648@xxxxxxxxxxxxxxxxxxxxxxx
> You can use IOCP to reduce number of reading threads ( obviouly though
> PInvoke ).
> Generic method of C# is remoting but that ( as MSMQ btw ) use sockets as
> low layer.
> If you mean IPC in the same maching generic is messaging
> Arkady
>
> "Droopy" <droopytoonnospam@xxxxxxxxxxx> wrote in message
> news:Xns9758A557B3D1Ddroopytoonnospamhotm@xxxxxxxxxxxxxxxxx
>> Hi,
>>
>> I write a routing messages application in C# (framework 1.1).
>> There are 3 other C# applications that are concurrently sending/receiving
>> messages to/from my routing application by using a C# DLL.
>> What is the best way (I mean simple to install and powerful) to implement
>> this ?
>>
>> A first version has been written, using Tcp sockets (1 thread by socket
>> for
>> reading messages) but there are too many sockets => too many threads.
>> Of course, I could improve the ressources usage (using Select or
>> something
>> else to get less threads, multiplexing messages to use less sockets,
>> ...).
>>
>> I would like to use a real and fast IPC.
>> I thought using Memory Mapped File (but I have to PInvoke) or MSMQ (but
>> is
>> it available, I mean is it enable, on all Win XP systems).
>>
>> What IPC are you using ?
>>
>> Thanks in advance.
>
>
.
- Follow-Ups:
- Re: IPC in C#
- From: Arkady Frenkel
- Re: IPC in C#
- References:
- IPC in C#
- From: Droopy
- Re: IPC in C#
- From: Arkady Frenkel
- IPC in C#
- Prev by Date: Specify an IPv6 address for an RPC client.
- Next by Date: Re: TCP-port reuse
- Previous by thread: Re: IPC in C#
- Next by thread: Re: IPC in C#
- Index(es):
Relevant Pages
|