lp://staging/~psmay/+junk/perl-socket-mux-poc
- Get this branch:
- bzr branch lp://staging/~psmay/+junk/perl-socket-mux-poc
Branch information
- Owner:
- Peter S. May
- Status:
- Development
Recent revisions
- 3. By Peter S. May <http://psmay.com>
-
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).
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)