[Eventmachine-talk] EM & STDIN/STDOUT

60 views
Skip to first unread message

Kenneth Kalmer

unread,
Oct 13, 2008, 11:14:50 AM10/13/08
to eventmac...@rubyforge.org
Hi all

I'm tasked with writing an experimental backend for PowerDNS, and
since I speak ruby I thought the backend should do the same. PowerDNS
allows developers to create custom, piped backends
(http://doc.powerdns.com/backends-detail.html#PIPEBACKEND). It's a
very simple text protocol over STDIN/STDOUT, and I was wondering if EM
would be a good for this, and other similar tasks (over piped
communications)?

Kind regards

--
Kenneth Kalmer
kenneth...@gmail.com
http://opensourcery.co.za
_______________________________________________
Eventmachine-talk mailing list
Eventmac...@rubyforge.org
http://rubyforge.org/mailman/listinfo/eventmachine-talk

Roger Pack

unread,
Oct 13, 2008, 11:30:08 AM10/13/08
to eventmac...@rubyforge.org
I know there has been some experimenting with 'attach' and 'detach.
You may be able to attach STDIN/STDOUT so that EM watches fd 1 [is
that STDIN/STDOUT?]--I'm not totally sure of the semantics, having
never used it. I think there's a keyboard reader which might fake
STDIN.
Cheers.
-=R

--
Thanks!
-=R

Reply all
Reply to author
Forward
0 new messages