Netty的几种socket选项与java socket 对应关系
在创建BootStrap时,可以为它设置option
有以下几种
NameAssociatedsettermethod
"keepAlive"setKeepAlive(boolean)
"reuseAddress"setReuseAddress(boolean)
"soLinger"setSoLinger(int)
"tcpNoDelay"setTcpNoDelay(boolean)
"receiveBufferSize"setReceiveBufferSize(int)
"sendBufferSize"setSendBufferSize(int)
"trafficClass"setTrafficClass(int)
"bufferFactory"setBufferFactory(ChannelBufferFactory)
"connectTimeoutMillis"setConnectTimeoutMillis(int)
"pipelineFactory"setPipelineFactory(ChannelPipelineFactory)
具体解释:
http://docs.jboss.org/netty/3.2/api/org/jboss/netty/channel/socket/SocketChannelConfig.html
http://www.nptpark.com
相关推荐
jannal 2020-06-21
一叶梧桐 2020-10-14
lzzyok 2020-10-10
digwtx 2020-09-14
efeve 2020-09-14
poplpsure 2020-08-17
ITxiaobaibai 2020-07-26
libowenhit 2020-07-23
luckykapok 2020-07-06
hongsheyoumo 2020-06-27
lanmantech 2020-06-16
咻咻ing 2020-06-16
weibingbingnet 2020-06-14
woyanyouxin 2020-06-04
houjinkai 2020-06-03
txj 2020-06-02