Discussion:
EventMachine, single-character input, and start_server?
Ken D'Ambrosio
2018-06-23 04:04:08 UTC
Permalink
Hi! EventMachine is really nifty. It even supports single-character
input, which is something I've realized I need... but I'm not sure it
supports it over a network connection. Or, rather, I'm thinking maybe
it doesn't.

So:
1) Can I get character-at-a-time input via EventMachine for a
network-based connection?
2) Failing that, what other recommendations might be out there? I mean,
I can code my own, but EventMachine did such a nice job abstracting so
much of the irksomeness that I'm leaning toward it, well, a lot.

Thaniks for ideas and suggestions!

-Ken

Unsubscribe: <mailto:ruby-talk-***@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
A. D Masiakos
2018-06-23 06:57:37 UTC
Permalink
Hello Ken,
From your writings this could be achieved if you read a maximum of one
character through the network connection underlying socket.
I don't thing this has to do with event machine, it is just an IO matter.
:-)
Hi!  EventMachine is really nifty.  It even supports single-character
input, which is something I've realized I need... but I'm not sure it
supports it over a network connection.  Or, rather, I'm thinking maybe
it doesn't.
1) Can I get character-at-a-time input via EventMachine for a
network-based connection?
2) Failing that, what other recommendations might be out there?  I
mean, I can code my own, but EventMachine did such a nice job
abstracting so much of the irksomeness that I'm leaning toward it,
well, a lot.
Thaniks for ideas and suggestions!
-Ken
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
--
--
--A.D Masiakos
--GIAC REM #4706
--KeyId: 0x48D84811
--http://recodestuff.wordpress.com
Loading...