I have a quick-and-dirty telnet protocol engine
implemented in scsh which moves chars between
the current-input-port and the current-output-port
and the telnet socket.
I want to have various things that also talk to
current-input-port/current-output-port that I'd like to
have talk to the things telnetted to.
What's the cleanest/most-elegant/most-efficient (choose at
least one) way of tying these things together so that
the current-input-port of a thunk is attached to the
current-output-port of the telnet, and vice-versa?
I can think of several ways of doing this,
and all of them are _ugly_.
Sean.
|