Attached is a raw, unvarnished, PoC:
IODemo: test application
IOSender: sends data to a port (IODemo should listen)
IOHandler: basic interface for what to do with input
CommandDispatcher: normal I/O handler, dispatches commands
CommandHandler: interface for a command
ShowAttributes: simple command
SetAttribute: DATA-like commmand with nested IOHandler
IOSession: encapsulates the I/O handling process
CRLFDelimitedByteBuffer: queue of CRLF-terminated lines
To play:
javac *.java
java -cp . IODemo <port> &
java -cp . IOSender <port>
CRLFDelimitedByteBuffer drops in; the rest is largely discarded with some
bits and pieces merged with existing code.
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]