Package | Description |
---|---|
com.sm.transport.netty |
Modifier and Type | Method and Description |
---|---|
static TCPServer |
TCPServer.start(int port) |
static TCPServer |
TCPServer.start(int port,
org.jboss.netty.channel.ChannelUpstreamHandler serverHandler)
Use nonSharableChannelPipeline which create a decoder for each connection
encoder is thread safe for netty
|
static TCPServer |
TCPServer.start(int port,
org.jboss.netty.channel.ChannelUpstreamHandler serverHandler,
org.jboss.netty.handler.codec.frame.FrameDecoder decoder,
org.jboss.netty.channel.ChannelDownstreamHandler encoder)
decoder must be thread safe, other wise data corruption
|
static TCPServer |
TCPServer.startOio(int port,
org.jboss.netty.channel.ChannelUpstreamHandler serverHandler) |
static TCPServer |
TCPServer.startOio(int port,
org.jboss.netty.channel.ChannelUpstreamHandler serverHandler,
org.jboss.netty.handler.codec.frame.FrameDecoder decoder,
org.jboss.netty.channel.ChannelDownstreamHandler encoder)
decoder must be thread safe, other wise data corruption
|
Copyright © 2016. All rights reserved.