ITeye博客

netty

共 3 篇文章

netty time 例子

//TIME 服务器端协议实现 package com.bigdata.jboss.basic; import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffers; import org.jboss.netty.channel.Channel; import org.jboss.netty.channel.ChannelFuture; import org.jboss.netty.channel.ChannelFutureListener; import org.jboss.ne…

2012-06-08 14:58 · netty

netty echo 例子

// ECHO 协议,服务器实现 package com.bigdata.jboss.basic; import org.jboss.netty.channel.Channel; import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.channel.ExceptionEvent; import org.jboss.netty.channel.MessageEvent; import org.jboss.netty.channel.SimpleChannelHandler; public cla…

2012-06-08 14:18 · netty

netty discard 例子

// 业务逻辑处理 package com.bigdata.jboss.basic; import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.channel.ExceptionEvent; import org.jboss.netty.channel.MessageEvent; import org.jboss.netty.channel.SimpleChannelHandler; public class DiscardServerHandler extends SimpleChannelHa…

2012-06-08 09:38 · netty