List of usage examples for io.netty.channel SimpleChannelInboundHandler subclass-usage
From source file cn.david.socks.SocksServerHandler.java
@ChannelHandler.Sharable public final class SocksServerHandler extends SimpleChannelInboundHandler<SocksRequest> { @Override public void channelRead0(ChannelHandlerContext ctx, SocksRequest socksRequest) throws Exception { switch (socksRequest.requestType()) {
From source file cn.easyplay.proxy.WebSocketClientHandler.java
public class WebSocketClientHandler extends SimpleChannelInboundHandler<Object> { private final static Logger LOGGER = LogManager.getLogger(); private final WebSocketClientHandshaker handshaker; private ChannelPromise handshakeFuture; private Channel telnetChannel;
From source file cn.hz.netty.chat.SecureChatServerHandler.java
/** * Handles a server-side channel. */ public class SecureChatServerHandler extends SimpleChannelInboundHandler<String> { static final ChannelGroup channels = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);
From source file cn.jpush.api.common.connection.Http2SettingsHandler.java
/** * Reads the first {@link Http2Settings} object and notifies a {@link ChannelPromise} */ public class Http2SettingsHandler extends SimpleChannelInboundHandler<Http2Settings> { private ChannelPromise promise;
From source file cn.jpush.api.common.connection.HttpResponseHandler.java
/** * Process {@link FullHttpResponse} translated from HTTP/2 frames */ public class HttpResponseHandler extends SimpleChannelInboundHandler<FullHttpResponse> { private static final Logger LOG = LoggerFactory.getLogger(HttpResponseHandler.class);
From source file cn.npt.net.websocket.WebSocketServerHandler.java
/**
* <br>?,??????,????
* <br>??websocket??{cmd:getSensorValue,depth:0,timeInterval:1000,sensorIds:[...]}
* <br>cmd:?getSensorValue,updateSensorValue,getStartTime,getSensorCount
* <br>depth:0--?;1--BS;2--BS;3--BS
* <br>timeInterval:,??ms
From source file cn.pengj.udpdemo.EchoSeverHandler.java
public class EchoSeverHandler extends SimpleChannelInboundHandler<DatagramPacket> { @Override protected void channelRead0(ChannelHandlerContext ctx, DatagramPacket packet) throws Exception { // ?? ByteBuf buf = (ByteBuf) packet.copy().content(); byte[] req = new byte[buf.readableBytes()];
From source file cn.savor.small.netty.MiniProNettyClientHandler.java
/**
* @author bichao</a>
* @version 1.0.0.0.1
* @notes Created on 20161205<br>
* Revision of last commit:$Revision$<br>
* Author of last commit:$Author$<br>
From source file cn.savor.small.netty.NettyClientHandler.java
/**
* @author bichao</a>
* @version 1.0.0.0.1
* @notes Created on 20161205<br>
* Revision of last commit:$Revision$<br>
* Author of last commit:$Author$<br>
From source file cn.scujcc.bug.bitcoinplatformandroid.util.socket.websocket.WebSocketClientHandler.java
public class WebSocketClientHandler extends SimpleChannelInboundHandler<Object> { private final WebSocketClientHandshaker handshaker; private ChannelPromise handshakeFuture; private MoniterTask moniter; private WebSocketService service;