Examples of TCPChunkEvent


Examples of org.snova.framework.event.TCPChunkEvent

  }
 
  @Override
  public void handleRawData(LocalProxyHandler local, ChannelBuffer raw)
  {
    TCPChunkEvent ev = new TCPChunkEvent();
    ev.setHash(local.getId());
    ev.sequence = this.sequence++;
    ChannelBuffer buf = raw;
    ev.content = new byte[buf.readableBytes()];
    buf.readBytes(ev.content);
    requestEvent(ev);
View Full Code Here

Examples of org.snova.framework.event.TCPChunkEvent

        }
        break;
      }
      case CommonEventConstants.EVENT_TCP_CHUNK_TYPE:
      {
        TCPChunkEvent chunk = (TCPChunkEvent) event;
        localHandler.handleRawData(this,
                ChannelBuffers.wrappedBuffer(chunk.content));
        logger.info(String.format("Session[%d]Handle TCP chunk %d:%d",
                localHandler.getId(), chunk.sequence,
                chunk.content.length));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.