# Interprocess Communication Windows?

**URL:** <https://www.ruby-forum.com/t/interprocess-communication-windows/136029>\
**Category:** Ruby\
**Created:** [April 28, 2008, 9:38am UTC](https://www.ruby-forum.com/t/interprocess-communication-windows/136029 "2008-04-28T09:38:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sealedsun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Post date:** [April 28, 2008, 9:38am UTC](https://www.ruby-forum.com/t/interprocess-communication-windows/136029/1 "2008-04-28T09:38:48Z")

</div>

What is the best way to do interprocess communication under windows?

I’ve tried:

- Process Signals, but trapping them doesn’t work

- Win32::Event but in the second Process i doesn’t get the handle

Can somebody point me in the right direction and give me some examples?

thx

---

<div class="post-metadata">

**Author:** ![sealedsun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Post date:** [April 28, 2008, 6:13pm UTC](https://www.ruby-forum.com/t/interprocess-communication-windows/136029/2 "2008-04-28T18:13:21Z")

</div>

there’s always the old hack of binding and connecting to localhost 🙂

On Mon, Apr 28, 2008 at 1:38 AM, Christian K.

---

<div class="post-metadata">

**Author:** ![sealedsun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Post date:** [April 28, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/interprocess-communication-windows/136029/3 "2008-04-28T19:42:46Z")

</div>

On Apr 28, 4:38 am, Christian K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> What is the best way to do interprocess communication under windows?
> 
> I’ve tried:
> 
> - Process Signals, but trapping them doesn’t work
> 
> - Win32::Event but in the second Process i doesn’t get the handle
> 
> Can somebody point me in the right direction and give me some examples?

Another, not so technically advanced solution will be use DRb as  
exchange mechanism…

Of course, if both sides are implemented by you 🙂

Also, it is cross platform.

HTH,

---

<div class="post-metadata">

**Author:** ![sealedsun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Post date:** [April 30, 2008, 8:00am UTC](https://www.ruby-forum.com/t/interprocess-communication-windows/136029/4 "2008-04-30T08:00:56Z")

</div>

Luis L. wrote:

> Another, not so technically advanced solution will be use DRb as  
> exchange mechanism…

Using DRb now, seems to fit my purpose. Thanks!
