final private class ProtocolInspectingAsynchChannel extends FilterAsynchChannel {
private Packet buffer;
public ProtocolInspectingAsynchChannel(AsynchChannel next) throws IOException {
super(next);
setAsynchChannelListener(new AsynchChannelListener() {
public void onPacket(Packet packet) {
if (buffer == null) {
buffer = packet;
} else {
buffer = AppendedPacket.join(buffer, packet);