netty
curiousby
这个作者很懒,什么都没留下…
展开
-
netty 吐槽
2014-12-26 12:19:40 · 77 阅读 · 0 评论 -
netty 实例入门
concurrent.ConcurrentHashMap;import java.util.concurrent.atomic.AtomicBoolean; import javax.net.ssl.SSLHandshakeException; import io.netty.bootstrap.Bootstrap;import io.netty.channel.Channel;import io.netty.channel.ChannelFuture;import io.netty2015-05-01 18:43:00 · 109 阅读 · 0 评论 -
netty 基于 http1.0 开发
;import io.netty.channel.ChannelOption;import io.netty.channel.EventLoopGroup;import io.netty.channel.nio.NioEventLoopGroup;import io.netty.channel.socket.nio.NioServerSocketChannel;import io.netty.handler.logging.LogLevel;import io.netty.handl2015-11-13 17:03:06 · 190 阅读 · 0 评论 -
基于cglib 反射 netty http1.0
gson.Gson;import com.google.gson.GsonBuilder;public class ResponceInfo { private Integer code; private String message; private Object data; public ResponceInfo() { } public ResponceInfo(Integer code, String message, Object2015-11-16 17:00:57 · 78 阅读 · 0 评论 -
mina nettty codec 防止粘包
a.filter.codec.ProtocolCodecFactory;import org.apache.mina.filter.codec.ProtocolDecoder;import org.apache.mina.filter.codec.ProtocolEncoder;/** * * @author baoyou E-mail:[email protected] * @version 2017年4月21日 上午10:35:05 * desc: */publ2017-04-21 10:29:14 · 108 阅读 · 0 评论 -
ios apns netty java codec 防止粘包
annel>() { @Override protected void initChannel(SocketChannel ch) throws Exception { ChannelPipeline pipeline = ch.pipeline(); if (isSsl) { SSLContext sslContext = SSLU2017-04-22 21:00:05 · 132 阅读 · 0 评论 -
手写 reactor( netty reactor 模型)
SocketChannel; public Dispacther() throws IOException { selector=Selector.open(); serverSocketChannel=ServerSocketChannel.open(); InetSocketAddress inetSocketAddress=new InetSocketAddress(this.host,this.port); server2018-03-04 01:16:15 · 346 阅读 · 0 评论