~psmay/+junk/perl-socket-mux-poc

  • Committer: Peter S. May
  • Date: 2013-05-24 20:40:00 UTC
  • Revision ID: peter_s._may_httppsmay.com-20130524204000-725oyz7jic79to5t
Some serious progress!

To ease associating handles with buffers, a system is used to produce a
bidirect ional mapping between handles and string keys. At the moment
it's terribly stupid in that it simply uses the `fileno`, and if we
decide to stick with that idea (which wouldn't be insane since that's
how `select` is modeled) there are implementations that don't involve so
much unnecessary abstraction.

Parts of this code are intended to make it easy for the action to take
place on a console, including a bit where stdin on the server is
broadcast to all currently open sockets. The eventual product will use
an efficient binary format, and packets given on input will only be
forwarded to the socket to which they are addressed (if in fact they are
forwarded at all—the server will also accept other commands that don't
correspond to output).
Filename Latest Rev Last Changed Committer Comment Size
..
File client.pl 3 11 years ago Peter S. May Some serious progress! To ease associating handle 1.4 KB Diff Download File
File server.pl 3 11 years ago Peter S. May Some serious progress! To ease associating handle 6.2 KB Diff Download File